[−][src]Struct jws::Error
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
Methods
impl Error
[src]
pub const Other: ErrorKind
[src]
pub const MissingHeaderParam: ErrorKind
[src]
pub const InvalidHeaderParam: ErrorKind
[src]
pub const UnsupportedMacAlgorithm: ErrorKind
[src]
pub const InvalidMessage: ErrorKind
[src]
pub const InvalidSignature: ErrorKind
[src]
pub fn kind(&self) -> ErrorKind
[src]
Get the kind of error.
pub fn message(&self) -> &str
[src]
Get the error message.
pub fn other(message: impl Into<String>) -> Self
[src]
Create a new error of type ErrorKind::Other
with a given message.
pub fn missing_header_param(message: impl Into<String>) -> Self
[src]
Create a new error of type ErrorKind::MissingHeaderParam
with a given message.
pub fn invalid_header_param(message: impl Into<String>) -> Self
[src]
Create a new error of type ErrorKind::InvalidHeaderParam
with a given message.
pub fn unsupported_mac_algorithm(message: impl Into<String>) -> Self
[src]
Create a new error of type ErrorKind::UnsupportedMacAlgorithm
with a given message.
pub fn invalid_message(message: impl Into<String>) -> Self
[src]
Create a new error of type ErrorKind::InvalidMessage
with a given message.
pub fn invalid_signature(message: impl Into<String>) -> Self
[src]
Create a new error of type ErrorKind::InvalidSignature
with a given message.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnwindSafe for Error
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,