pub struct KnownHosts { /* private fields */ }Expand description
Known SSH host keys for server verification (TOFU model)
On first connection to a server, the key is saved to a known_hosts file. On subsequent connections, the presented key is verified against the saved one. This prevents MITM attacks after the initial connection.
Implementations§
Trait Implementations§
Source§impl Clone for KnownHosts
impl Clone for KnownHosts
Source§fn clone(&self) -> KnownHosts
fn clone(&self) -> KnownHosts
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 moreAuto Trait Implementations§
impl !RefUnwindSafe for KnownHosts
impl !UnwindSafe for KnownHosts
impl Freeze for KnownHosts
impl Send for KnownHosts
impl Sync for KnownHosts
impl Unpin for KnownHosts
impl UnsafeUnpin for KnownHosts
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