#[non_exhaustive]pub enum RetrieveTokenError<RE: Error + Send + Sync + 'static> {
ValidationError {
error: ValidationError<RE>,
access_token: AccessToken,
refresh_token: Option<RefreshToken>,
},
RefreshTokenError {
error: RefreshTokenError<RE>,
refresh_token: RefreshToken,
},
}
Available on crate feature
client
only.Expand description
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
ValidationError
could not validate token
Fields
§
error: ValidationError<RE>
Error validating the token
§
access_token: AccessToken
Access token passed to the function
§
refresh_token: Option<RefreshToken>
Refresh token passed to the function
RefreshTokenError
could not refresh token
Fields
§
error: RefreshTokenError<RE>
Error refreshing the token
§
refresh_token: RefreshToken
Refresh token passed to the function
Trait Implementations§
Source§impl<RE: Error + Send + Sync + 'static> Error for RetrieveTokenError<RE>where
ValidationError<RE>: Error + 'static,
RefreshTokenError<RE>: Error + 'static,
Self: Debug + Display,
impl<RE: Error + Send + Sync + 'static> Error for RetrieveTokenError<RE>where
ValidationError<RE>: Error + 'static,
RefreshTokenError<RE>: Error + 'static,
Self: Debug + Display,
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<RE: Error + Send + Sync + 'static> From<CreationError<RE>> for RetrieveTokenError<RE>
impl<RE: Error + Send + Sync + 'static> From<CreationError<RE>> for RetrieveTokenError<RE>
Source§fn from(_: CreationError<RE>) -> Self
fn from(_: CreationError<RE>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<RE> Freeze for RetrieveTokenError<RE>where
RE: Freeze,
impl<RE> !RefUnwindSafe for RetrieveTokenError<RE>
impl<RE> Send for RetrieveTokenError<RE>
impl<RE> Sync for RetrieveTokenError<RE>
impl<RE> Unpin for RetrieveTokenError<RE>where
RE: Unpin,
impl<RE> !UnwindSafe for RetrieveTokenError<RE>
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