pub struct KnownHosts { /* private fields */ }Expand description
Map of host:port → fingerprint.
Implementations§
Source§impl KnownHosts
impl KnownHosts
Sourcepub fn load(path: PathBuf) -> SshCliResult<Self>
pub fn load(path: PathBuf) -> SshCliResult<Self>
Loads the file (empty if missing).
Sourcepub fn path_beside_config(config_toml: &Path) -> PathBuf
pub fn path_beside_config(config_toml: &Path) -> PathBuf
Default path config_dir/known_hosts next to config.toml.
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 moreSource§impl Debug for KnownHosts
impl Debug for KnownHosts
Source§impl Default for KnownHosts
impl Default for KnownHosts
Source§fn default() -> KnownHosts
fn default() -> KnownHosts
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for KnownHosts
impl RefUnwindSafe for KnownHosts
impl Send for KnownHosts
impl Sync for KnownHosts
impl Unpin for KnownHosts
impl UnsafeUnpin for KnownHosts
impl UnwindSafe 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