pub enum Host<'a, RegNameE: Encoder = RegName> {
Ipv4(Ipv4Addr),
Ipv6(Ipv6Addr),
IpvFuture,
RegName(&'a EStr<RegNameE>),
}
Expand description
A parsed host component.
Variants§
Ipv4(Ipv4Addr)
An IPv4 address.
Ipv6(Ipv6Addr)
An IPv6 address.
IpvFuture
An IP address of future version.
This variant is marked as non-exhaustive because the API design for IPvFuture addresses is to be determined.
RegName(&'a EStr<RegNameE>)
A registered name.
Note that ASCII characters within a registered name are case-insensitive.
Trait Implementations§
impl<'a, RegNameE: Copy + Encoder> Copy for Host<'a, RegNameE>
Auto Trait Implementations§
impl<'a, RegNameE> Freeze for Host<'a, RegNameE>
impl<'a, RegNameE> RefUnwindSafe for Host<'a, RegNameE>where
RegNameE: RefUnwindSafe,
impl<'a, RegNameE> Send for Host<'a, RegNameE>where
RegNameE: Sync,
impl<'a, RegNameE> Sync for Host<'a, RegNameE>where
RegNameE: Sync,
impl<'a, RegNameE> Unpin for Host<'a, RegNameE>
impl<'a, RegNameE> UnwindSafe for Host<'a, RegNameE>where
RegNameE: RefUnwindSafe,
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
)