pub enum OidcError {
DiscoveryFailed(String),
TokenExchangeFailed(String),
UserInfoFailed(String),
HttpError(String),
}Expand description
Errors for OIDC operations.
Variants§
DiscoveryFailed(String)
OIDC discovery document fetch failed.
TokenExchangeFailed(String)
Token exchange with the provider failed.
UserInfoFailed(String)
User info fetch failed.
HttpError(String)
HTTP request error.
Trait Implementations§
Source§impl Error for OidcError
impl Error for OidcError
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 OidcError
impl RefUnwindSafe for OidcError
impl Send for OidcError
impl Sync for OidcError
impl Unpin for OidcError
impl UnsafeUnpin for OidcError
impl UnwindSafe for OidcError
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