pub enum ActivationError {
LoadCachedToken(CachedTokenError),
SaveCachedToken(Error),
FetchActivationUrl(MoonbaseApiError),
FetchActivationState(MoonbaseApiError),
OfflineToken(OfflineTokenValidationError),
}Expand description
Errors that can occur during the activation process.
Variants§
LoadCachedToken(CachedTokenError)
An error occurred when validating a cached token.
SaveCachedToken(Error)
Could not persist the token to disk for caching purposes.
FetchActivationUrl(MoonbaseApiError)
Could not fetch the online activation URL from the Moonbase API.
FetchActivationState(MoonbaseApiError)
Could not fetch the activation state of an online token from the Moonbase API.
OfflineToken(OfflineTokenValidationError)
Could not validate an offline token provided by the user.
Trait Implementations§
Source§impl Debug for ActivationError
impl Debug for ActivationError
Source§impl Display for ActivationError
impl Display for ActivationError
Source§impl Error for ActivationError
impl Error for ActivationError
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<CachedTokenError> for ActivationError
impl From<CachedTokenError> for ActivationError
Source§fn from(source: CachedTokenError) -> Self
fn from(source: CachedTokenError) -> Self
Converts to this type from the input type.
Source§impl From<Error> for ActivationError
impl From<Error> for ActivationError
Source§impl From<OfflineTokenValidationError> for ActivationError
impl From<OfflineTokenValidationError> for ActivationError
Source§fn from(source: OfflineTokenValidationError) -> Self
fn from(source: OfflineTokenValidationError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ActivationError
impl !RefUnwindSafe for ActivationError
impl Send for ActivationError
impl Sync for ActivationError
impl Unpin for ActivationError
impl UnsafeUnpin for ActivationError
impl !UnwindSafe for ActivationError
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