pub struct Error { /* private fields */ }
Expand description
Represents all possible errors from this crate.
Implementations§
source§impl Error
impl Error
sourcepub fn is_malformed_jwt(&self) -> bool
pub fn is_malformed_jwt(&self) -> bool
If the error is due to the JWT being malformed.
sourcepub fn is_invalid_signature(&self) -> bool
pub fn is_invalid_signature(&self) -> bool
If the error is due to an invalid signature.
sourcepub fn is_base64_decode_error(&self) -> bool
pub fn is_base64_decode_error(&self) -> bool
If the error is due to a part not being correctly base64 encoded.
sourcepub fn is_key_rejected(&self) -> bool
pub fn is_key_rejected(&self) -> bool
If the error is due to an invalid key.
Trait Implementations§
source§impl Error for Error
impl Error for Error
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl From<InvalidEncodingError> for Error
impl From<InvalidEncodingError> for Error
source§fn from(_: InvalidEncodingError) -> Self
fn from(_: InvalidEncodingError) -> Self
Converts to this type from the input type.
source§impl From<InvalidLengthError> for Error
impl From<InvalidLengthError> for Error
source§fn from(_: InvalidLengthError) -> Self
fn from(_: InvalidLengthError) -> Self
Converts to this type from the input type.
source§impl From<KeyRejected> for Error
Available on crate feature ring
only.
impl From<KeyRejected> for Error
Available on crate feature
ring
only.source§fn from(_: KeyRejected) -> Self
fn from(_: KeyRejected) -> Self
Converts to this type from the input type.
source§impl From<Unspecified> for Error
Available on crate feature ring
only.
impl From<Unspecified> for Error
Available on crate feature
ring
only.source§fn from(_: Unspecified) -> Self
fn from(_: Unspecified) -> Self
Converts to this type from the input type.
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§
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