pub enum Error {
ParseTimestamp,
JWT(JWTError),
Key(KeyError),
Parse(ParseIntError),
Decode(DecodeError, &'static str),
Serde(Error),
Construction(ConstructionError),
UTF8(Utf8Error),
Reqwest(Error),
}Expand description
Main error
Variants§
ParseTimestamp
Unable to parse timestamp for ‘nbf’, ‘iat’ or ‘exp’ fields
JWT(JWTError)
JWT sub error
Key(KeyError)
Key sub error
Parse(ParseIntError)
Parse error while converting ‘nbf’, ‘iat’ or ‘exp’ to integers to parse to timestamp
Decode(DecodeError, &'static str)
Decode base64 url safe error while parsing JWT
Serde(Error)
Serde error while deserializing JWT parts into HashMaps
Construction(ConstructionError)
Construction sub error
UTF8(Utf8Error)
UTF8 error while decoding JWT from base64
Reqwest(Error)
Reqwest error while trying to obtain JWK array (JWKS)
Trait Implementations§
Source§impl From<ParseIntError> for Error
impl From<ParseIntError> for Error
Source§fn from(value: ParseIntError) -> Self
fn from(value: ParseIntError) -> Self
Converts to this type from the input type.
Source§impl From<Unspecified> for Error
impl From<Unspecified> for Error
Source§fn from(value: Unspecified) -> Self
fn from(value: Unspecified) -> 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