#[non_exhaustive]pub enum OAuthClientError {
Http(String),
Discovery(String),
TokenRequest(String),
Registration(String),
CredentialStore(String),
TokenStore(String),
StateStore(String),
Redirect(String),
ScopeEscalation(String),
InvalidResponse(String),
BuildError(String),
}Expand description
Error type for OAuth client operations.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Http(String)
OAuth protocol HTTP request failed.
Discovery(String)
Failed to discover the authorization server metadata.
TokenRequest(String)
Failed to request a token from the token endpoint.
Registration(String)
Failed to register an OAuth client.
CredentialStore(String)
Failed to load, save, or remove persisted OAuth client credentials.
TokenStore(String)
Failed to load, save, or remove persisted OAuth tokens.
StateStore(String)
Failed to load, save, or remove persisted PKCE/CSRF state.
Redirect(String)
Authorization redirect handling failed.
ScopeEscalation(String)
Failed to reauthorize after an insufficient-scope challenge.
InvalidResponse(String)
The token response was invalid or missing required fields.
BuildError(String)
Builder validation failed (missing required fields).
Trait Implementations§
Source§impl Debug for OAuthClientError
impl Debug for OAuthClientError
Source§impl Display for OAuthClientError
impl Display for OAuthClientError
Source§impl Error for OAuthClientError
impl Error for OAuthClientError
1.30.0 · 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()
Auto Trait Implementations§
impl Freeze for OAuthClientError
impl RefUnwindSafe for OAuthClientError
impl Send for OAuthClientError
impl Sync for OAuthClientError
impl Unpin for OAuthClientError
impl UnsafeUnpin for OAuthClientError
impl UnwindSafe for OAuthClientError
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