Struct jws::Error [−][src]
Expand description
An error that can occur during JWS processing.
An error consists of an ErrorKind
indicating the type of error,
and a human readable message.
The message is purely for human consumption. It should not be used by error handling code to change handling logic.
Fields
kind: ErrorKind
message: String
Implementations
Create a new error of type ErrorKind::Other
with a given message.
Create a new error of type ErrorKind::MissingHeaderParam
with a given message.
Create a new error of type ErrorKind::InvalidHeaderParam
with a given message.
Create a new error of type ErrorKind::UnsupportedMacAlgorithm
with a given message.
Create a new error of type ErrorKind::InvalidMessage
with a given message.
Create a new error of type ErrorKind::InvalidSignature
with a given message.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Error
impl UnwindSafe for Error
Blanket Implementations
Mutably borrows from an owned value. Read more