pub struct KnownHostsFile {
pub direct: Vec<DirectHostKey>,
pub cert_authorities: Vec<CertAuthority>,
pub revoked: Vec<RevokedEntry>,
pub hashed: Vec<HashedHost>,
}Expand description
Fully-parsed view of one known_hosts-style file.
Returned by parse_known_hosts. Empty vectors are the natural
state when a file contains no entries of that class.
Fields§
§direct: Vec<DirectHostKey>§revoked: Vec<RevokedEntry>§hashed: Vec<HashedHost>Hashed direct entries (M19, FR-84). Use
HashedHost::matches to query by candidate hostname; the
vector itself preserves source order.
Trait Implementations§
Source§impl Clone for KnownHostsFile
impl Clone for KnownHostsFile
Source§fn clone(&self) -> KnownHostsFile
fn clone(&self) -> KnownHostsFile
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 KnownHostsFile
impl Debug for KnownHostsFile
Source§impl Default for KnownHostsFile
impl Default for KnownHostsFile
Source§fn default() -> KnownHostsFile
fn default() -> KnownHostsFile
Returns the “default value” for a type. Read more
Source§impl PartialEq for KnownHostsFile
impl PartialEq for KnownHostsFile
Source§fn eq(&self, other: &KnownHostsFile) -> bool
fn eq(&self, other: &KnownHostsFile) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for KnownHostsFile
impl StructuralPartialEq for KnownHostsFile
Auto Trait Implementations§
impl Freeze for KnownHostsFile
impl RefUnwindSafe for KnownHostsFile
impl Send for KnownHostsFile
impl Sync for KnownHostsFile
impl Unpin for KnownHostsFile
impl UnsafeUnpin for KnownHostsFile
impl UnwindSafe for KnownHostsFile
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