Enum mas_oidc_client::error::Error
source · 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)>
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 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
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> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§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 moresource§impl<T> Pointable for T
impl<T> Pointable for T
source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string
, but without panic on OOM.