pub enum LicenseError {
NoToken,
InvalidFormat(String),
DecodeError(String),
Expired,
NotYetValid,
ValidationFailed(String),
OnlineValidationError(String),
}Expand description
License validation errors
Variants§
NoToken
No license token was provided
InvalidFormat(String)
Invalid JWT format
DecodeError(String)
JWT decode error
Expired
License has expired
NotYetValid
License is not yet valid
ValidationFailed(String)
License validation failed
OnlineValidationError(String)
Online validation error
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
1.30.0 · 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<LicenseError> for PhyTraceError
impl From<LicenseError> for PhyTraceError
Source§fn from(source: LicenseError) -> Self
fn from(source: LicenseError) -> 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 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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.
§impl<T> ValidateIp for Twhere
T: ToString,
impl<T> ValidateIp for Twhere
T: ToString,
§fn validate_ipv4(&self) -> bool
fn validate_ipv4(&self) -> bool
Validates whether the given string is an IP V4
§fn validate_ipv6(&self) -> bool
fn validate_ipv6(&self) -> bool
Validates whether the given string is an IP V6
§fn validate_ip(&self) -> bool
fn validate_ip(&self) -> bool
Validates whether the given string is an IP