pub struct CreationError<RE: Error + Send + Sync + 'static> {
pub access_token: AccessToken,
pub refresh_token: Option<RefreshToken>,
pub error: ValidationError<RE>,
}
Expand description
Fields§
§access_token: AccessToken
Access token passed to the function
refresh_token: Option<RefreshToken>
Refresh token passed to the function
error: ValidationError<RE>
Error validating the token
Implementations§
Source§impl CreationError<Infallible>
impl CreationError<Infallible>
Sourcepub fn into_other<RE: Error + Send + Sync + 'static>(self) -> CreationError<RE>
Available on crate feature client
only.
pub fn into_other<RE: Error + Send + Sync + 'static>(self) -> CreationError<RE>
client
only.Convert this error from a infallible to another
Trait Implementations§
Source§impl<RE: Error + Send + Sync + 'static> Error for CreationError<RE>
impl<RE: Error + Send + Sync + 'static> Error for CreationError<RE>
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<(AccessToken, Option<RefreshToken>, ValidationError<RE>)> for CreationError<RE>
impl<RE: Error + Send + Sync + 'static> From<(AccessToken, Option<RefreshToken>, ValidationError<RE>)> for CreationError<RE>
Source§fn from(
(access_token, refresh_token, error): (AccessToken, Option<RefreshToken>, ValidationError<RE>),
) -> Self
fn from( (access_token, refresh_token, error): (AccessToken, Option<RefreshToken>, ValidationError<RE>), ) -> Self
Converts to this type from the input type.
Source§impl<RE: Error + Send + Sync + 'static> From<CreationError<RE>> for DeviceUserTokenExchangeError<RE>
Available on crate feature client
only.
impl<RE: Error + Send + Sync + 'static> From<CreationError<RE>> for DeviceUserTokenExchangeError<RE>
Available on crate feature
client
only.Source§fn from(value: CreationError<RE>) -> Self
fn from(value: CreationError<RE>) -> Self
Converts to this type from the input type.
Source§impl<RE: Error + Send + Sync + 'static> From<CreationError<RE>> for ImplicitUserTokenExchangeError<RE>
Available on crate feature client
only.
impl<RE: Error + Send + Sync + 'static> From<CreationError<RE>> for ImplicitUserTokenExchangeError<RE>
Available on crate feature
client
only.Source§fn from(value: CreationError<RE>) -> Self
fn from(value: CreationError<RE>) -> Self
Converts to this type from the input type.
Source§impl<RE: Error + Send + Sync + 'static> From<CreationError<RE>> for RetrieveTokenError<RE>
Available on crate feature client
only.
impl<RE: Error + Send + Sync + 'static> From<CreationError<RE>> for RetrieveTokenError<RE>
Available on crate feature
client
only.Source§fn from(_: CreationError<RE>) -> Self
fn from(_: CreationError<RE>) -> Self
Converts to this type from the input type.
Source§impl<RE: Error + Send + Sync + 'static> From<CreationError<RE>> for UserTokenExchangeError<RE>
Available on crate feature client
only.
impl<RE: Error + Send + Sync + 'static> From<CreationError<RE>> for UserTokenExchangeError<RE>
Available on crate feature
client
only.Source§fn from(value: CreationError<RE>) -> Self
fn from(value: CreationError<RE>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<RE> Freeze for CreationError<RE>where
RE: Freeze,
impl<RE> !RefUnwindSafe for CreationError<RE>
impl<RE> Send for CreationError<RE>
impl<RE> Sync for CreationError<RE>
impl<RE> Unpin for CreationError<RE>where
RE: Unpin,
impl<RE> !UnwindSafe for CreationError<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