pub enum AuthError<B>{
Show 13 variants
PasswordInvalid,
PasswordParseError,
BackendError(B::Error),
TotpLibError(TotpError),
TotpCodeInvalid,
SystemTimeError(SystemTimeError),
TokenExpired,
TokenRevoked,
IncorrectTokenType,
QrCodeError(String),
UrlParseError(ParseError),
OAuthTokenError(RequestTokenError<Error<Error>, StandardErrorResponse<BasicErrorResponseType>>),
InvalidOAuthState,
}Expand description
The general error type for this crate
Variants§
PasswordInvalid
PasswordParseError
BackendError(B::Error)
TotpLibError(TotpError)
TotpCodeInvalid
SystemTimeError(SystemTimeError)
TokenExpired
TokenRevoked
IncorrectTokenType
QrCodeError(String)
UrlParseError(ParseError)
OAuthTokenError(RequestTokenError<Error<Error>, StandardErrorResponse<BasicErrorResponseType>>)
InvalidOAuthState
Trait Implementations§
Source§impl<B> Error for AuthError<B>
impl<B> Error for AuthError<B>
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<B> From<ParseError> for AuthError<B>
impl<B> From<ParseError> for AuthError<B>
Source§fn from(value: ParseError) -> Self
fn from(value: ParseError) -> Self
Converts to this type from the input type.
Source§impl<B> From<RequestTokenError<Error<Error>, StandardErrorResponse<BasicErrorResponseType>>> for AuthError<B>
impl<B> From<RequestTokenError<Error<Error>, StandardErrorResponse<BasicErrorResponseType>>> for AuthError<B>
Source§fn from(
value: RequestTokenError<ReqwestError<Error>, StandardErrorResponse<BasicErrorResponseType>>,
) -> Self
fn from( value: RequestTokenError<ReqwestError<Error>, StandardErrorResponse<BasicErrorResponseType>>, ) -> Self
Converts to this type from the input type.
Source§impl<B> From<Rfc6238Error> for AuthError<B>
impl<B> From<Rfc6238Error> for AuthError<B>
Source§fn from(value: Rfc6238Error) -> Self
fn from(value: Rfc6238Error) -> Self
Converts to this type from the input type.
Source§impl<B> From<SecretParseError> for AuthError<B>
impl<B> From<SecretParseError> for AuthError<B>
Source§fn from(value: SecretParseError) -> Self
fn from(value: SecretParseError) -> Self
Converts to this type from the input type.
Source§impl<B> From<SystemTimeError> for AuthError<B>
impl<B> From<SystemTimeError> for AuthError<B>
Source§fn from(value: SystemTimeError) -> Self
fn from(value: SystemTimeError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<B> Freeze for AuthError<B>
impl<B> !RefUnwindSafe for AuthError<B>
impl<B> Send for AuthError<B>
impl<B> Sync for AuthError<B>
impl<B> Unpin for AuthError<B>
impl<B> !UnwindSafe for AuthError<B>
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