Enum matrix_sdk::oidc::error::Error
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§
§impl Error for Error
impl Error for Error
§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()
§impl From<AccountManagementError> for Error
impl From<AccountManagementError> for Error
§fn from(source: AccountManagementError) -> Error
fn from(source: AccountManagementError) -> Error
Converts to this type from the input type.
§impl From<AuthorizationError> for Error
impl From<AuthorizationError> for Error
§fn from(source: AuthorizationError) -> Error
fn from(source: AuthorizationError) -> Error
Converts to this type from the input type.
§impl From<DiscoveryError> for Error
impl From<DiscoveryError> for Error
§fn from(source: DiscoveryError) -> Error
fn from(source: DiscoveryError) -> Error
Converts to this type from the input type.
§impl From<IntrospectionError> for Error
impl From<IntrospectionError> for Error
§fn from(source: IntrospectionError) -> Error
fn from(source: IntrospectionError) -> Error
Converts to this type from the input type.
§impl From<RegistrationError> for Error
impl From<RegistrationError> for Error
§fn from(source: RegistrationError) -> Error
fn from(source: RegistrationError) -> Error
Converts to this type from the input type.
§impl From<TokenAuthorizationCodeError> for Error
impl From<TokenAuthorizationCodeError> for Error
§fn from(source: TokenAuthorizationCodeError) -> Error
fn from(source: TokenAuthorizationCodeError) -> Error
Converts to this type from the input type.
§impl From<TokenRefreshError> for Error
impl From<TokenRefreshError> for Error
§fn from(source: TokenRefreshError) -> Error
fn from(source: TokenRefreshError) -> Error
Converts to this type from the input type.
§impl From<TokenRequestError> for Error
impl From<TokenRequestError> for Error
§fn from(source: TokenRequestError) -> Error
fn from(source: TokenRequestError) -> Error
Converts to this type from the input type.
§impl From<TokenRevokeError> for Error
impl From<TokenRevokeError> for Error
§fn from(source: TokenRevokeError) -> Error
fn from(source: TokenRevokeError) -> Error
Converts to this type from the input type.
§impl From<UserInfoError> for Error
impl From<UserInfoError> for Error
§fn from(source: UserInfoError) -> Error
fn from(source: UserInfoError) -> Error
Converts to this type from the input type.
Auto Trait Implementations§
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
§impl<T> FutureExt for T
impl<T> FutureExt for T
§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
§impl<T, UT> HandleAlloc<UT> for T
impl<T, UT> HandleAlloc<UT> for T
§fn new_handle(value: Arc<T>) -> Handle
fn new_handle(value: Arc<T>) -> Handle
Create a new handle for an Arc value Read more
§fn clone_handle(handle: Handle) -> Handle
fn clone_handle(handle: Handle) -> Handle
Clone a handle Read more
§fn consume_handle(handle: Handle) -> Arc<T>
fn consume_handle(handle: Handle) -> Arc<T>
Consume a handle, getting back the initial
Arc<>