Enum mas_oidc_client::error::Error
source · pub enum Error {
Discovery(DiscoveryError),
Jwks(JwksError),
Authorization(AuthorizationError),
TokenAuthorizationCode(TokenAuthorizationCodeError),
TokenClientCredentials(TokenRequestError),
TokenRefresh(TokenRefreshError),
UserInfo(UserInfoError),
}
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.
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.
UserInfo(UserInfoError)
An error occurred requesting user info.
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<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<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<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 more