pub struct Entry { /* private fields */ }
Expand description
An entry in File
.
The entry constains a hostname pattern and a public key assigned to that hostname.
Implementations§
source§impl Entry
impl Entry
sourcepub fn line(&self) -> usize
pub fn line(&self) -> usize
The line number of this entry in the File
.
Lines are counted from 1.
sourcepub fn is_revoked(&self) -> bool
pub fn is_revoked(&self) -> bool
Has this entry been revoked using the @revoked
marker?
This signifies that the public key from this entry has been revoked for the host, so if the server provides this key, the connection should be rejected.
sourcepub fn key_comment(&self) -> Option<&str>
pub fn key_comment(&self) -> Option<&str>
The optional comment of the public key.
sourcepub fn matches_hostname(&self, hostname: &str) -> bool
pub fn matches_hostname(&self, hostname: &str) -> bool
Tests whether the hostname matches this entry.
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Entry
impl Send for Entry
impl Sync for Entry
impl Unpin for Entry
impl UnwindSafe for Entry
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