#[non_exhaustive]pub enum HostKeyErrorKind {
Unknown,
Changed,
Rejected,
Unsupported,
Unavailable,
}Expand description
Host-key verification failure category.
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.
Unknown
Host key is unknown to the configured policy.
Changed
Host key changed from a previously trusted value.
Rejected
Host key was rejected by policy.
Unsupported
Host key algorithm or format is unsupported.
Host key was unavailable when required.
Trait Implementations§
Source§impl Clone for HostKeyErrorKind
impl Clone for HostKeyErrorKind
Source§fn clone(&self) -> HostKeyErrorKind
fn clone(&self) -> HostKeyErrorKind
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 HostKeyErrorKind
impl Debug for HostKeyErrorKind
Source§impl Hash for HostKeyErrorKind
impl Hash for HostKeyErrorKind
Source§impl PartialEq for HostKeyErrorKind
impl PartialEq for HostKeyErrorKind
Source§fn eq(&self, other: &HostKeyErrorKind) -> bool
fn eq(&self, other: &HostKeyErrorKind) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for HostKeyErrorKind
impl Eq for HostKeyErrorKind
impl StructuralPartialEq for HostKeyErrorKind
Auto Trait Implementations§
impl Freeze for HostKeyErrorKind
impl RefUnwindSafe for HostKeyErrorKind
impl Send for HostKeyErrorKind
impl Sync for HostKeyErrorKind
impl Unpin for HostKeyErrorKind
impl UnsafeUnpin for HostKeyErrorKind
impl UnwindSafe for HostKeyErrorKind
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