pub enum LicenseError {
Show 30 variants
KeyGenerationFailed(String),
InvalidKeyFormat(String),
SigningFailed(String),
VerificationFailed(String),
LicenseExpired(String),
HardwareBindingMismatch {
field: String,
},
InvalidLicenseFormat(String),
IoError(Error),
SerializationError(String),
NotYetValid(String),
MissingField(String),
ClockManipulationDetected {
drift_hours: i64,
},
ClockDriftTooLarge {
drift_hours: i64,
},
StateFileTampered,
StateLicenseMismatch,
ActivationDenied(String),
ActivationLimitReached {
max: u32,
current: u32,
},
HardwareFingerprintMismatch {
percentage: f32,
},
InsecureKeyPermissions {
path: PathBuf,
mode: String,
suggestion: String,
},
Validation(String),
InvalidActivationRequest(String),
InvalidActivationResponse(String),
ActivationRequestCorrupted,
ActivationResponseCorrupted,
ActivationVersionMismatch {
request: u8,
response: u8,
},
ActivationRequestMismatch,
ActivationResponseExpired,
InvalidResponseCode(String),
UnlockResponseExpired,
MachineLocked(String),
}Expand description
Errors that can occur during license operations
Variants§
KeyGenerationFailed(String)
InvalidKeyFormat(String)
SigningFailed(String)
VerificationFailed(String)
LicenseExpired(String)
HardwareBindingMismatch
InvalidLicenseFormat(String)
IoError(Error)
SerializationError(String)
NotYetValid(String)
MissingField(String)
ClockManipulationDetected
ClockDriftTooLarge
StateFileTampered
StateLicenseMismatch
ActivationDenied(String)
ActivationLimitReached
HardwareFingerprintMismatch
InsecureKeyPermissions
Validation(String)
InvalidActivationRequest(String)
InvalidActivationResponse(String)
ActivationRequestCorrupted
ActivationResponseCorrupted
ActivationVersionMismatch
ActivationRequestMismatch
ActivationResponseExpired
InvalidResponseCode(String)
UnlockResponseExpired
MachineLocked(String)
Trait Implementations§
Source§impl Debug for LicenseError
impl Debug for LicenseError
Source§impl Display for LicenseError
impl Display for LicenseError
Source§impl Error for LicenseError
impl Error for LicenseError
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()
Auto Trait Implementations§
impl Freeze for LicenseError
impl !RefUnwindSafe for LicenseError
impl Send for LicenseError
impl Sync for LicenseError
impl Unpin for LicenseError
impl UnsafeUnpin for LicenseError
impl !UnwindSafe for LicenseError
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