pub enum TokenError {
UnsupportedAlgorithm,
InvalidKey,
InvalidHeader,
InvalidPayload(Error),
InvalidToken,
InvalidSignature,
}
Expand description
JWT Error
Variants§
UnsupportedAlgorithm
algorithm is not recognised or unsupported
InvalidKey
invalid signing/verify key when creating algorithm
InvalidHeader
invalid header while parsing/decoding
InvalidPayload(Error)
payload failed to serialise or deserialise
InvalidToken
token was invalid
InvalidSignature
signature was invalid
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TokenError
impl !RefUnwindSafe for TokenError
impl Send for TokenError
impl Sync for TokenError
impl Unpin for TokenError
impl !UnwindSafe for TokenError
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