pub enum Error {
JsonError(Error),
Base64DecodeError(DecodeError),
IDTokenSplitError(IDTokenSplitError),
IDTokenExpiredError(IDTokenExpiredError),
SystemTimeError(SystemTimeError),
GoogleIssuerNotMatchError(GoogleIssuerNotMatchError),
IDTokenClientIDNotFoundError(IDTokenClientIDNotFoundError),
RS256SignatureError(Error),
RS256Error(Error),
HashAlgorithmUnimplementedError(HashAlgorithmUnimplementedError),
IDTokenCertNotFoundError(IDTokenCertNotFoundError),
ReqwestError(Error),
}
Variants§
JsonError(Error)
Any JSON error from serde_json
Base64DecodeError(DecodeError)
Any base64 decode error, from base64
IDTokenSplitError(IDTokenSplitError)
Error when id_token splits into 3 parts
IDTokenExpiredError(IDTokenExpiredError)
Error when id_token is expired
SystemTimeError(SystemTimeError)
Any SystemTimeError
GoogleIssuerNotMatchError(GoogleIssuerNotMatchError)
Error when id_token has an issuer which not listed in [GOOGLE_ISS]
IDTokenClientIDNotFoundError(IDTokenClientIDNotFoundError)
Error when id_token has a client_id which not listed when client was created.
RS256SignatureError(Error)
RS256Error(Error)
HashAlgorithmUnimplementedError(HashAlgorithmUnimplementedError)
Error when id_token has an unimplemented hash algorithm
IDTokenCertNotFoundError(IDTokenCertNotFoundError)
Error when alg and kid (in header of id_token) not found in any cert from google server
ReqwestError(Error)
Any reqwest::Error
Trait Implementations§
Source§impl Error for Error
impl Error for Error
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()
Source§impl From<DecodeError> for Error
impl From<DecodeError> for Error
Source§fn from(err: DecodeError) -> Self
fn from(err: DecodeError) -> Self
Converts to this type from the input type.
Source§impl From<GoogleIssuerNotMatchError> for Error
impl From<GoogleIssuerNotMatchError> for Error
Source§fn from(err: GoogleIssuerNotMatchError) -> Self
fn from(err: GoogleIssuerNotMatchError) -> Self
Converts to this type from the input type.
Source§impl From<HashAlgorithmUnimplementedError> for Error
impl From<HashAlgorithmUnimplementedError> for Error
Source§fn from(err: HashAlgorithmUnimplementedError) -> Self
fn from(err: HashAlgorithmUnimplementedError) -> Self
Converts to this type from the input type.
Source§impl From<IDTokenCertNotFoundError> for Error
impl From<IDTokenCertNotFoundError> for Error
Source§fn from(err: IDTokenCertNotFoundError) -> Self
fn from(err: IDTokenCertNotFoundError) -> Self
Converts to this type from the input type.
Source§impl From<IDTokenClientIDNotFoundError> for Error
impl From<IDTokenClientIDNotFoundError> for Error
Source§fn from(err: IDTokenClientIDNotFoundError) -> Self
fn from(err: IDTokenClientIDNotFoundError) -> Self
Converts to this type from the input type.
Source§impl From<IDTokenExpiredError> for Error
impl From<IDTokenExpiredError> for Error
Source§fn from(err: IDTokenExpiredError) -> Self
fn from(err: IDTokenExpiredError) -> Self
Converts to this type from the input type.
Source§impl From<IDTokenSplitError> for Error
impl From<IDTokenSplitError> for Error
Source§fn from(err: IDTokenSplitError) -> Self
fn from(err: IDTokenSplitError) -> Self
Converts to this type from the input type.
Source§impl From<SystemTimeError> for Error
impl From<SystemTimeError> for Error
Source§fn from(err: SystemTimeError) -> Self
fn from(err: SystemTimeError) -> 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