pub enum LicenseError {
InvalidFormat(String),
InvalidEncoding(DecodeError),
InvalidSignature,
InvalidJson(Error),
HwidMismatch {
expected: String,
actual: String,
},
Expired(DateTime<Utc>),
InvalidPublicKey(String),
}Expand description
License validation errors
Variants§
InvalidFormat(String)
InvalidEncoding(DecodeError)
InvalidSignature
InvalidJson(Error)
HwidMismatch
Expired(DateTime<Utc>)
InvalidPublicKey(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()
Source§impl From<DecodeError> for LicenseError
impl From<DecodeError> for LicenseError
Source§fn from(source: DecodeError) -> Self
fn from(source: DecodeError) -> Self
Converts to this type from the input type.
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