Enum itsdangerous::BadSignature
source · [−]pub enum BadSignature<'a> {
SeparatorNotFound {
separator: Separator,
},
SignatureMismatch {
signature: &'a str,
value: &'a str,
},
PayloadInvalid {
value: &'a str,
error: PayloadError,
},
}
Expand description
Errors that can occur while unsigning a “signed value”.
Variants
SeparatorNotFound
Fields
separator: Separator
A string was provided to unsign, but it did not contain the expected separator.
SignatureMismatch
The signature did not match what we expected it to be.
PayloadInvalid
The payload is invalid, e.g. it cannot be parsed.
Trait Implementations
sourceimpl<'a> Debug for BadSignature<'a>
impl<'a> Debug for BadSignature<'a>
sourceimpl<'a> Display for BadSignature<'a>
impl<'a> Display for BadSignature<'a>
sourceimpl<'a> Error for BadSignature<'a>
impl<'a> Error for BadSignature<'a>
sourcefn description(&self) -> &str
fn description(&self) -> &str
👎 Deprecated since 1.42.0:
use the Display impl or to_string()
sourcefn cause(&self) -> Option<&dyn Error>
fn cause(&self) -> Option<&dyn Error>
👎 Deprecated since 1.33.0:
replaced by Error::source, which can support downcasting
sourceimpl<'a> From<BadSignature<'a>> for BadTimedSignature<'a>
impl<'a> From<BadSignature<'a>> for BadTimedSignature<'a>
sourcefn from(bad_signature: BadSignature<'a>) -> Self
fn from(bad_signature: BadSignature<'a>) -> Self
Performs the conversion.
Auto Trait Implementations
impl<'a> RefUnwindSafe for BadSignature<'a>
impl<'a> Send for BadSignature<'a>
impl<'a> Sync for BadSignature<'a>
impl<'a> Unpin for BadSignature<'a>
impl<'a> UnwindSafe for BadSignature<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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