#[non_exhaustive]pub enum InconsistentKeys {
KeyMismatch,
Unknown,
}
Expand description
Specific failure cases from keys_match
or a crate::crypto::signer::SigningKey
that cannot produce a corresponding public key.
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.
KeyMismatch
The public key returned by the SigningKey
does not match the public key information in the certificate.
Unknown
The SigningKey
cannot produce its corresponding public key.
Trait Implementations§
Source§impl Clone for InconsistentKeys
impl Clone for InconsistentKeys
Source§fn clone(&self) -> InconsistentKeys
fn clone(&self) -> InconsistentKeys
Returns a copy of the value. Read more
1.0.0 · 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 InconsistentKeys
impl Debug for InconsistentKeys
Source§impl From<InconsistentKeys> for Error
impl From<InconsistentKeys> for Error
Source§fn from(e: InconsistentKeys) -> Self
fn from(e: InconsistentKeys) -> Self
Converts to this type from the input type.
Source§impl PartialEq for InconsistentKeys
impl PartialEq for InconsistentKeys
impl Copy for InconsistentKeys
impl Eq for InconsistentKeys
impl StructuralPartialEq for InconsistentKeys
Auto Trait Implementations§
impl Freeze for InconsistentKeys
impl RefUnwindSafe for InconsistentKeys
impl Send for InconsistentKeys
impl Sync for InconsistentKeys
impl Unpin for InconsistentKeys
impl UnwindSafe for InconsistentKeys
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 1 byte
Size for each variant:
KeyMismatch
: 0 bytesUnknown
: 0 bytes