Enum uriparse::authority::Host [−][src]
pub enum Host<'host> { IPv4Address(Ipv4Addr), IPv6Address(Ipv6Addr), RegisteredName(RegisteredName<'host>), }
Variants
IPv4Address(Ipv4Addr)
IPv6Address(Ipv6Addr)
RegisteredName(RegisteredName<'host>)
Trait Implementations
impl<'host> Clone for Host<'host>
[src]
impl<'host> Clone for Host<'host>
fn clone(&self) -> Host<'host>
[src]
fn clone(&self) -> Host<'host>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl<'host> Debug for Host<'host>
[src]
impl<'host> Debug for Host<'host>
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl<'host> Eq for Host<'host>
[src]
impl<'host> Eq for Host<'host>
impl<'host> Hash for Host<'host>
[src]
impl<'host> Hash for Host<'host>
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0
[src]Feeds a slice of this type into the given [Hasher
]. Read more
impl<'host> PartialEq for Host<'host>
[src]
impl<'host> PartialEq for Host<'host>
fn eq(&self, other: &Host<'host>) -> bool
[src]
fn eq(&self, other: &Host<'host>) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Host<'host>) -> bool
[src]
fn ne(&self, other: &Host<'host>) -> bool
This method tests for !=
.
impl<'host> Display for Host<'host>
[src]
impl<'host> Display for Host<'host>
fn fmt(&self, formatter: &mut Formatter) -> Result
[src]
fn fmt(&self, formatter: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl From<IpAddr> for Host<'static>
[src]
impl From<IpAddr> for Host<'static>
impl<'host> TryFrom<&'host [u8]> for Host<'host>
[src]
impl<'host> TryFrom<&'host [u8]> for Host<'host>
type Error = InvalidHost
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_from(value: &'host [u8]) -> Result<Self, Self::Error>
[src]
fn try_from(value: &'host [u8]) -> Result<Self, Self::Error>
🔬 This is a nightly-only experimental API. (
try_from
)Performs the conversion.
impl<'host> TryFrom<&'host str> for Host<'host>
[src]
impl<'host> TryFrom<&'host str> for Host<'host>