Enum fluent_uri::component::Host
source · pub enum Host<'a> {
Ipv4(Ipv4Addr),
Ipv6(Ipv6Addr),
IpvFuture,
RegName(&'a EStr<RegName>),
}Expand description
The parsed host component of URI reference.
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<RegName>)
A registered name.
Note that registered names are case-insensitive.
Trait Implementations§
impl<'a> Copy for Host<'a>
Auto Trait Implementations§
impl<'a> Freeze for Host<'a>
impl<'a> RefUnwindSafe for Host<'a>
impl<'a> Send for Host<'a>
impl<'a> Sync for Host<'a>
impl<'a> Unpin for Host<'a>
impl<'a> UnwindSafe for Host<'a>
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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
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)