pub enum ErrorKind {
MissingHeaderParam,
InvalidHeaderParam,
UnsupportedMacAlgorithm,
InvalidMessage,
InvalidSignature,
Other,
}
Expand description
Indicates the type of an error that can occur during JWS processing.
Variants
MissingHeaderParam
A required header parameter is missing.
InvalidHeaderParam
A header param was found but it’s value is invalid.
UnsupportedMacAlgorithm
The MAC algorithm indicates by the JWS header is not supported by the used crate::Verifier
.
InvalidMessage
The message being processed is not valid.
InvalidSignature
The signature of a message being verified is invalid.
Other
An error that doesn’t match any of the other types.
Trait Implementations
impl Copy for ErrorKind
impl Eq for ErrorKind
impl StructuralEq for ErrorKind
impl StructuralPartialEq for ErrorKind
Auto Trait Implementations
impl RefUnwindSafe for ErrorKind
impl Send for ErrorKind
impl Sync for ErrorKind
impl Unpin for ErrorKind
impl UnwindSafe for ErrorKind
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more