-
Notifications
You must be signed in to change notification settings - Fork 23
QuantumGate::Local::SetSecurityLevel
Karel Donk edited this page Dec 30, 2019
·
5 revisions
Sets the security level for the instance. See Security Levels for more details on QuantumGate security levels.
Result<> SetSecurityLevel(const SecurityLevel level,
const std::optional<SecurityParameters>& params = std::nullopt) noexcept;| Name | Description |
|---|---|
level |
The QuantumGate::SecurityLevel to set for the instance. See QuantumGate Types for more details. |
params |
The optional QuantumGate::SecurityParameters to set for the instance when the level parameter is QuantumGate::SecurityLevel::Custom. |
Returns a QuantumGate::Result object equal to one of the following QuantumGate::ResultCodes:
| Value | Description |
|---|---|
QuantumGate::ResultCode::Succeeded |
The operation succeeded. |
QuantumGate::ResultCode::Failed |
The operation failed. |
QuantumGate::ResultCode::InvalidArgument |
The operation failed because invalid arguments were passed in for the function. |