#[non_exhaustive]pub enum SignatureFailure {
Malformed,
Invalid,
}Expand description
Why a signature failed to verify.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Malformed
The signature bytes are the wrong length or shape for the algorithm.
Invalid
The signature parsed correctly but did not verify against the data.
Trait Implementations§
Source§impl Clone for SignatureFailure
impl Clone for SignatureFailure
Source§fn clone(&self) -> SignatureFailure
fn clone(&self) -> SignatureFailure
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SignatureFailure
impl Debug for SignatureFailure
Source§impl Display for SignatureFailure
impl Display for SignatureFailure
impl Eq for SignatureFailure
Source§impl PartialEq for SignatureFailure
impl PartialEq for SignatureFailure
Source§fn eq(&self, other: &SignatureFailure) -> bool
fn eq(&self, other: &SignatureFailure) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SignatureFailure
Auto Trait Implementations§
impl Freeze for SignatureFailure
impl RefUnwindSafe for SignatureFailure
impl Send for SignatureFailure
impl Sync for SignatureFailure
impl Unpin for SignatureFailure
impl UnsafeUnpin for SignatureFailure
impl UnwindSafe for SignatureFailure
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