#[non_exhaustive]pub enum KeyProblem {
Invalid(String),
Unsupported(String),
}Expand description
Why a key cannot be used, by its Signature-Error code.
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.
Invalid(String)
invalid_key: malformed, symmetric, or inconsistent with its alg.
Unsupported(String)
unsupported_algorithm: well-formed, but not one this crate verifies.
Trait Implementations§
Source§impl Clone for KeyProblem
impl Clone for KeyProblem
Source§impl Debug for KeyProblem
impl Debug for KeyProblem
impl Eq for KeyProblem
Source§impl PartialEq for KeyProblem
impl PartialEq for KeyProblem
impl StructuralPartialEq for KeyProblem
Auto Trait Implementations§
impl Freeze for KeyProblem
impl RefUnwindSafe for KeyProblem
impl Send for KeyProblem
impl Sync for KeyProblem
impl Unpin for KeyProblem
impl UnsafeUnpin for KeyProblem
impl UnwindSafe for KeyProblem
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