pub enum HostKeyVerification {
Strict,
AcceptNew,
Disabled,
}Expand description
Host key verification mode, mirroring OpenSSH’s StrictHostKeyChecking.
Variants§
Strict
Reject connections to hosts not already in known_hosts.
AcceptNew
Accept and learn unknown host keys; reject changed keys (OpenSSH default).
Disabled
Accept all host keys without verification (insecure).
Trait Implementations§
Source§impl Clone for HostKeyVerification
impl Clone for HostKeyVerification
Source§fn clone(&self) -> HostKeyVerification
fn clone(&self) -> HostKeyVerification
Returns a duplicate 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 HostKeyVerification
impl Debug for HostKeyVerification
Source§impl Default for HostKeyVerification
impl Default for HostKeyVerification
Source§fn default() -> HostKeyVerification
fn default() -> HostKeyVerification
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for HostKeyVerification
impl RefUnwindSafe for HostKeyVerification
impl Send for HostKeyVerification
impl Sync for HostKeyVerification
impl Unpin for HostKeyVerification
impl UnsafeUnpin for HostKeyVerification
impl UnwindSafe for HostKeyVerification
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