pub enum Error {
Discovery(DiscoveryError),
Jwks(JwksError),
Registration(RegistrationError),
Authorization(AuthorizationError),
TokenAuthorizationCode(TokenAuthorizationCodeError),
TokenClientCredentials(TokenRequestError),
TokenRefresh(TokenRefreshError),
TokenRevoke(TokenRevokeError),
UserInfo(UserInfoError),
Introspection(IntrospectionError),
AccountManagement(AccountManagementError),
}Expand description
All possible errors when using this crate.
Variants§
Discovery(DiscoveryError)
An error occurred fetching provider metadata.
Jwks(JwksError)
An error occurred fetching the provider JWKS.
Registration(RegistrationError)
An error occurred during client registration.
Authorization(AuthorizationError)
An error occurred building the authorization URL.
TokenAuthorizationCode(TokenAuthorizationCodeError)
An error occurred exchanging an authorization code for an access token.
TokenClientCredentials(TokenRequestError)
An error occurred requesting an access token with client credentials.
TokenRefresh(TokenRefreshError)
An error occurred refreshing an access token.
TokenRevoke(TokenRevokeError)
An error occurred revoking a token.
UserInfo(UserInfoError)
An error occurred requesting user info.
Introspection(IntrospectionError)
An error occurred introspecting a token.
AccountManagement(AccountManagementError)
An error occurred building the account management URL.
Trait Implementations§
Source§impl Error for Error
impl Error for Error
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<AccountManagementError> for Error
impl From<AccountManagementError> for Error
Source§fn from(source: AccountManagementError) -> Self
fn from(source: AccountManagementError) -> Self
Converts to this type from the input type.
Source§impl From<AuthorizationError> for Error
impl From<AuthorizationError> for Error
Source§fn from(source: AuthorizationError) -> Self
fn from(source: AuthorizationError) -> Self
Converts to this type from the input type.
Source§impl From<DiscoveryError> for Error
impl From<DiscoveryError> for Error
Source§fn from(source: DiscoveryError) -> Self
fn from(source: DiscoveryError) -> Self
Converts to this type from the input type.
Source§impl From<IntrospectionError> for Error
impl From<IntrospectionError> for Error
Source§fn from(source: IntrospectionError) -> Self
fn from(source: IntrospectionError) -> Self
Converts to this type from the input type.
Source§impl From<RegistrationError> for Error
impl From<RegistrationError> for Error
Source§fn from(source: RegistrationError) -> Self
fn from(source: RegistrationError) -> Self
Converts to this type from the input type.
Source§impl From<TokenAuthorizationCodeError> for Error
impl From<TokenAuthorizationCodeError> for Error
Source§fn from(source: TokenAuthorizationCodeError) -> Self
fn from(source: TokenAuthorizationCodeError) -> Self
Converts to this type from the input type.
Source§impl From<TokenRefreshError> for Error
impl From<TokenRefreshError> for Error
Source§fn from(source: TokenRefreshError) -> Self
fn from(source: TokenRefreshError) -> Self
Converts to this type from the input type.
Source§impl From<TokenRequestError> for Error
impl From<TokenRequestError> for Error
Source§fn from(source: TokenRequestError) -> Self
fn from(source: TokenRequestError) -> Self
Converts to this type from the input type.
Source§impl From<TokenRevokeError> for Error
impl From<TokenRevokeError> for Error
Source§fn from(source: TokenRevokeError) -> Self
fn from(source: TokenRevokeError) -> Self
Converts to this type from the input type.
Source§impl From<UserInfoError> for Error
impl From<UserInfoError> for Error
Source§fn from(source: UserInfoError) -> Self
fn from(source: UserInfoError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for Error
impl !UnwindSafe for Error
impl Freeze for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnsafeUnpin for Error
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