pub enum Error {
Show 64 variants
UnexpectedError(String),
InvalidUrl,
SystemClockUnsynced,
DecryptionError(String),
HttpClient(Error),
UrlParse(ParseError),
JsonError(Error),
InvalidHeader(InvalidHeaderValue),
UrlEncode(Error),
RateLimitExceeded {
window: String,
count: u32,
limit: u32,
remaining: u32,
reset: u64,
retry_after: u64,
},
LicenseKeyMissing,
LicenseSchemeMissing,
LicenseSchemeNotSupported,
LicenseNotSigned,
LicenseKeyNotGenuine,
PublicKeyMissing,
PublicKeyInvalid,
LicenseSchemeUnsupported,
CertificateFileInvalid(String),
CertificateFileNotGenuine(String),
CertificateFileNotSupported(String),
CertificateFileExpired,
LicenseFileInvalid(String),
LicenseFileNotGenuine(String),
LicenseFileNotSupported(String),
LicenseFileNotEncrypted,
LicenseFileExpired(Box<LicenseFileDataset>),
MachineFileInvalid(String),
MachineFileNotGenuine(String),
MachineFileNotSupported(String),
MachineFileExpired(Box<MachineFileDataset>),
KeygenApiError {
code: String,
detail: String,
body: Value,
},
TokenNotAllowed {
code: String,
detail: String,
},
TokenFormatInvalid {
code: String,
detail: String,
},
TokenInvalid {
code: String,
detail: String,
},
TokenExpired {
code: String,
detail: String,
},
LicenseSuspended {
code: String,
detail: String,
},
LicenseExpired {
code: String,
detail: String,
},
LicenseNotAllowed {
code: String,
detail: String,
},
LicenseNotActivated {
code: String,
detail: String,
license: Box<License>,
},
LicenseKeyInvalid {
code: String,
detail: String,
},
LicenseTokenInvalid {
code: String,
detail: String,
},
LicenseTooManyMachines {
code: String,
detail: String,
},
LicenseTooManyCores {
code: String,
detail: String,
},
LicenseTooManyProcesses {
code: String,
detail: String,
},
MachineAlreadyActivated {
code: String,
detail: String,
},
MachineLimitExceeded {
code: String,
detail: String,
},
MachineNotFound,
ProcessLimitExceeded {
code: String,
detail: String,
},
ProcessNotFound,
ComponentConflict {
code: String,
detail: String,
},
ComponentAlreadyActivated {
code: String,
detail: String,
},
ComponentNotActivated {
code: String,
detail: String,
},
EnvironmentError {
code: String,
detail: String,
},
HeartbeatDead {
code: String,
detail: String,
},
HeartbeatPingFailed {
code: String,
detail: String,
},
HeartbeatRequired {
code: String,
detail: String,
},
ValidationFingerprintMissing {
code: String,
detail: String,
},
ValidationComponentsMissing {
code: String,
detail: String,
},
ValidationProductMissing {
code: String,
detail: String,
},
NotFound {
code: String,
detail: String,
},
KeygenSignatureInvalid {
reason: String,
},
KeygenSignatureMissing,
MissingConfiguration,
}Variants§
UnexpectedError(String)
InvalidUrl
SystemClockUnsynced
DecryptionError(String)
HttpClient(Error)
UrlParse(ParseError)
JsonError(Error)
InvalidHeader(InvalidHeaderValue)
UrlEncode(Error)
RateLimitExceeded
LicenseKeyMissing
LicenseSchemeMissing
LicenseSchemeNotSupported
LicenseNotSigned
LicenseKeyNotGenuine
PublicKeyMissing
PublicKeyInvalid
LicenseSchemeUnsupported
CertificateFileInvalid(String)
CertificateFileNotGenuine(String)
CertificateFileNotSupported(String)
CertificateFileExpired
LicenseFileInvalid(String)
LicenseFileNotGenuine(String)
LicenseFileNotSupported(String)
LicenseFileNotEncrypted
LicenseFileExpired(Box<LicenseFileDataset>)
MachineFileInvalid(String)
MachineFileNotGenuine(String)
MachineFileNotSupported(String)
MachineFileExpired(Box<MachineFileDataset>)
KeygenApiError
TokenNotAllowed
TokenFormatInvalid
TokenInvalid
TokenExpired
LicenseSuspended
LicenseExpired
LicenseNotAllowed
LicenseNotActivated
LicenseKeyInvalid
LicenseTokenInvalid
LicenseTooManyMachines
LicenseTooManyCores
LicenseTooManyProcesses
MachineAlreadyActivated
MachineLimitExceeded
MachineNotFound
ProcessLimitExceeded
ProcessNotFound
ComponentConflict
ComponentAlreadyActivated
ComponentNotActivated
EnvironmentError
HeartbeatDead
HeartbeatPingFailed
HeartbeatRequired
ValidationFingerprintMissing
ValidationComponentsMissing
ValidationProductMissing
NotFound
KeygenSignatureInvalid
KeygenSignatureMissing
MissingConfiguration
Trait Implementations§
Source§impl Error for Error
impl Error for Error
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl From<Error> for Error
impl From<Error> for Error
Source§fn from(source: UrlEncodedError) -> Self
fn from(source: UrlEncodedError) -> Self
Converts to this type from the input type.
Source§impl From<InvalidHeaderValue> for Error
impl From<InvalidHeaderValue> for Error
Source§fn from(source: InvalidHeaderValue) -> Self
fn from(source: InvalidHeaderValue) -> Self
Converts to this type from the input type.
Source§impl From<ParseError> for Error
impl From<ParseError> for Error
Source§fn from(source: ParseError) -> Self
fn from(source: ParseError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for Error
impl !RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl !UnwindSafe for Error
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more