pub struct KnownHosts { /* private fields */ }Expand description
Mapa host:porta → fingerprint.
Implementations§
Source§impl KnownHosts
impl KnownHosts
Sourcepub fn carregar(caminho: PathBuf) -> ResultadoSshCli<Self>
pub fn carregar(caminho: PathBuf) -> ResultadoSshCli<Self>
Carrega o arquivo (vazio se inexistente).
Sourcepub fn caminho_ao_lado_config(config_toml: &Path) -> PathBuf
pub fn caminho_ao_lado_config(config_toml: &Path) -> PathBuf
Caminho padrão config_dir/known_hosts a partir do path do 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