Struct ssh_key::known_hosts::Entry
source · [−]pub struct Entry { /* private fields */ }
Available on crate feature
alloc
only.Expand description
Individual entry in an known_hosts
file containing a single public key.
Implementations
sourceimpl Entry
impl Entry
sourcepub fn host_patterns(&self) -> &HostPatterns
pub fn host_patterns(&self) -> &HostPatterns
Get the host pattern enumerator for this entry
sourcepub fn public_key(&self) -> &PublicKey
pub fn public_key(&self) -> &PublicKey
Get public key for this entry.
Trait Implementations
sourceimpl From<Entry> for HostPatterns
impl From<Entry> for HostPatterns
sourcefn from(entry: Entry) -> HostPatterns
fn from(entry: Entry) -> HostPatterns
Converts to this type from the input type.
impl Eq for Entry
impl StructuralEq for Entry
impl StructuralPartialEq for Entry
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more