pub enum JwtError {
Malformed,
BadEncoding,
UnsupportedAlg,
BadSignature,
Expired,
WrongIssuer,
}Variants§
Malformed
Token doesn’t have three .-separated segments.
BadEncoding
Header / claims base64 decode failed.
UnsupportedAlg
Header alg isn’t HS256 (we only mint that).
BadSignature
Signature didn’t match the secret.
Expired
exp is in the past.
WrongIssuer
iss doesn’t match expected issuer.
Trait Implementations§
impl Eq for JwtError
impl StructuralPartialEq for JwtError
Auto Trait Implementations§
impl Freeze for JwtError
impl RefUnwindSafe for JwtError
impl Send for JwtError
impl Sync for JwtError
impl Unpin for JwtError
impl UnsafeUnpin for JwtError
impl UnwindSafe for JwtError
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