pub enum Type {
Invalid,
Expired,
Early,
Certificate,
Key,
Connection,
Header,
Payload,
Signature,
Internal,
}
Expand description
Type of error encountered
Variants§
Invalid
Token is invalid For example, the format of the token is not “HEADER.PAYLOAD.SIGNATURE”
Expired
Token has expired
Early
Not Before (nbf) is set and it’s too early to use the token
Certificate
Problem with certificate
Key
Problem with key
Connection
Could not download key set
Header
Problem with JWT header
Payload
Problem with JWT payload
Signature
Problem with JWT signature
Internal
Internal problem (Signals a serious bug or fatal error)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Type
impl RefUnwindSafe for Type
impl Send for Type
impl Sync for Type
impl Unpin for Type
impl UnwindSafe for Type
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