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),
}
Available on crate feature
experimental-oidc
only.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) -> Error
fn from(source: AccountManagementError) -> Error
Converts to this type from the input type.
Source§impl From<AuthorizationError> for Error
impl From<AuthorizationError> for Error
Source§fn from(source: AuthorizationError) -> Error
fn from(source: AuthorizationError) -> Error
Converts to this type from the input type.
Source§impl From<DiscoveryError> for Error
impl From<DiscoveryError> for Error
Source§fn from(source: DiscoveryError) -> Error
fn from(source: DiscoveryError) -> Error
Converts to this type from the input type.
Source§impl From<IntrospectionError> for Error
impl From<IntrospectionError> for Error
Source§fn from(source: IntrospectionError) -> Error
fn from(source: IntrospectionError) -> Error
Converts to this type from the input type.
Source§impl From<RegistrationError> for Error
impl From<RegistrationError> for Error
Source§fn from(source: RegistrationError) -> Error
fn from(source: RegistrationError) -> Error
Converts to this type from the input type.
Source§impl From<TokenAuthorizationCodeError> for Error
impl From<TokenAuthorizationCodeError> for Error
Source§fn from(source: TokenAuthorizationCodeError) -> Error
fn from(source: TokenAuthorizationCodeError) -> Error
Converts to this type from the input type.
Source§impl From<TokenRefreshError> for Error
impl From<TokenRefreshError> for Error
Source§fn from(source: TokenRefreshError) -> Error
fn from(source: TokenRefreshError) -> Error
Converts to this type from the input type.
Source§impl From<TokenRequestError> for Error
impl From<TokenRequestError> for Error
Source§fn from(source: TokenRequestError) -> Error
fn from(source: TokenRequestError) -> Error
Converts to this type from the input type.
Source§impl From<TokenRevokeError> for Error
impl From<TokenRevokeError> for Error
Source§fn from(source: TokenRevokeError) -> Error
fn from(source: TokenRevokeError) -> Error
Converts to this type from the input type.
Source§impl From<UserInfoError> for Error
impl From<UserInfoError> for Error
Source§fn from(source: UserInfoError) -> Error
fn from(source: UserInfoError) -> Error
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for Error
impl !RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl !UnwindSafe 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
§impl<T> CompatExt for T
impl<T> CompatExt for T
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
Source§impl<T, UT> HandleAlloc<UT> for T
impl<T, UT> HandleAlloc<UT> for T
Source§fn consume_handle(handle: Handle) -> Arc<T>
fn consume_handle(handle: Handle) -> Arc<T>
Consume a handle, getting back the initial
Arc<>
Source§impl<T, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
impl<T, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
Source§impl<T> Identity for Twhere
T: ?Sized,
impl<T> Identity for Twhere
T: ?Sized,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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>
Converts
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>
Converts
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