pub enum AuthError {
Unsupported,
Cancelled,
Timeout,
InvalidRequest(String),
Provider {
error: String,
description: Option<String>,
},
StateMismatch,
InvalidToken(String),
Network(String),
Platform(String),
}Expand description
Why a sign-in, a token request or a credential request did not succeed.
Variants§
Unsupported
This platform has no implementation of what was asked.
Cancelled
The person dismissed the browser or the dialog.
Timeout
The callback never arrived within the time allowed.
InvalidRequest(String)
The request could not be built: a missing endpoint, an unusable redirect URI, a malformed URL. The text says which.
Provider
The provider answered an authorization or token request with an error (error, and
error_description when it gave one).
StateMismatch
The callback’s state did not match the request’s, or arrived without one.
InvalidToken(String)
A token or a provider document failed validation. The text says what.
Network(String)
A network request failed before the provider answered.
Platform(String)
A platform error outside the vocabulary above, with the platform’s message.
Trait Implementations§
impl Eq for AuthError
Source§impl Error for AuthError
impl Error for AuthError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
impl StructuralPartialEq for AuthError
Auto Trait Implementations§
impl Forget for AuthError
impl Freeze for AuthError
impl Move for AuthError
impl RefUnwindSafe for AuthError
impl Send for AuthError
impl Sync for AuthError
impl Unpin for AuthError
impl UnsafeUnpin for AuthError
impl UnwindSafe for AuthError
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more