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
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 for HostPatterns
impl PartialEq for HostPatterns
source§impl ToString for HostPatterns
impl ToString for HostPatterns
impl Eq for HostPatterns
impl StructuralPartialEq for HostPatterns
Auto Trait Implementations§
impl Freeze for HostPatterns
impl RefUnwindSafe for HostPatterns
impl Send for HostPatterns
impl Sync for HostPatterns
impl Unpin for HostPatterns
impl UnwindSafe for HostPatterns
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)