Enum ssh_key::known_hosts::HostPatterns
source · pub enum HostPatterns {
Patterns(Vec<String>),
HashedName {
salt: Vec<u8>,
hash: [u8; 20],
},
}Available on crate feature
alloc only.Expand description
The host pattern(s) for this host entry.
The host patterns can either be a comma separated list of host patterns
(which may include glob patterns (* and ?), negations (a ! prefix),
or pattern:port pairs inside square brackets), or a single hashed
hostname prefixed with |1|.
Variants§
Patterns(Vec<String>)
A comma separated list of hostname patterns.
HashedName
Fields
A single hashed hostname
Trait Implementations§
source§impl Clone for HostPatterns
impl Clone for HostPatterns
source§fn clone(&self) -> HostPatterns
fn clone(&self) -> HostPatterns
Returns a copy of the value. Read more
1.0.0 · 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 HostPatterns
impl Debug for HostPatterns
source§impl From<Entry> for HostPatterns
impl From<Entry> for HostPatterns
source§fn from(entry: Entry) -> HostPatterns
fn from(entry: Entry) -> HostPatterns
Converts to this type from the input type.
source§impl FromStr for HostPatterns
impl FromStr for HostPatterns
source§impl PartialEq<HostPatterns> for HostPatterns
impl PartialEq<HostPatterns> for HostPatterns
source§fn eq(&self, other: &HostPatterns) -> bool
fn eq(&self, other: &HostPatterns) -> bool
This method tests for
self and other values to be equal, and is used
by ==.