Enum rustls::InconsistentKeys
source · #[non_exhaustive]pub enum InconsistentKeys {
KeyMismatch,
Unknown,
}
Expand description
Specific failure cases from keys_match
.
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,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)