pub enum HostLabels {
Hostname(Vec<String>),
IpAddr(IpAddr),
Wildcard,
}Expand description
The type of host label in a host pattern.
Host patterns can be hostnames, IP addresses, or wildcards.
Variants§
Hostname(Vec<String>)
A hostname composed of labels (e.g., ["example", "com"]).
IpAddr(IpAddr)
An IP address (IPv4 or IPv6).
Wildcard
A wildcard (*) matching any host.
Implementations§
Trait Implementations§
Source§impl Clone for HostLabels
impl Clone for HostLabels
Source§fn clone(&self) -> HostLabels
fn clone(&self) -> HostLabels
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 HostLabels
impl Debug for HostLabels
Source§impl Display for HostLabels
impl Display for HostLabels
Source§impl PartialEq for HostLabels
impl PartialEq for HostLabels
Source§fn eq(&self, other: &HostLabels) -> bool
fn eq(&self, other: &HostLabels) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for HostLabels
Auto Trait Implementations§
impl Freeze for HostLabels
impl RefUnwindSafe for HostLabels
impl Send for HostLabels
impl Sync for HostLabels
impl Unpin for HostLabels
impl UnsafeUnpin for HostLabels
impl UnwindSafe for HostLabels
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