Enum jsonwebtoken::errors::Error [] [src]

pub enum Error {
    EncodeJSON(EncoderError),
    DecodeBase64(FromBase64Error),
    DecodeJSON(DecoderError),
    Utf8(FromUtf8Error),
    InvalidToken,
    InvalidSignature,
    WrongAlgorithmHeader,
}

All the errors we can encounter while signing/verifying tokens and a couple of custom one for when the token we are trying to verify is invalid

Variants

EncodeJSON
DecodeBase64
DecodeJSON
Utf8
InvalidToken
InvalidSignature
WrongAlgorithmHeader

Trait Implementations

impl From<EncoderError> for Error
[src]

fn from(f: EncoderError) -> Error

impl From<FromBase64Error> for Error
[src]

fn from(f: FromBase64Error) -> Error

impl From<DecoderError> for Error
[src]

fn from(f: DecoderError) -> Error

impl From<FromUtf8Error> for Error
[src]

fn from(f: FromUtf8Error) -> Error

impl Error for Error
[src]

fn description(&self) -> &str

fn cause(&self) -> Option<&Error>

impl Display for Error
[src]

fn fmt(&self, f: &mut Formatter) -> Result

Derived Implementations

impl Debug for Error
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result