Enum rdftk_iri::HostKind[][src]

pub enum HostKind {
    IPV4(Ipv4Addr),
    IPV6(Ipv6Addr),
    IPVFuture(u16String),
    DomainName(String),
}

This type holds the host details in their parsed form. It is an enumeration of the set of valid host representations allowed by the IRI specification.

Variants

IPV4(Ipv4Addr)

Holds a parsed IPv4 address; e.g. 127.0.0.1, 192.0.0.10, 16.38.10.112.

IPV6(Ipv6Addr)

Holds a parsed IPv6 address; e.g. [2001:db8::ff00:42:8329].

IPVFuture(u16String)

Holds a parsed IP future address; e.g. [v7.2001:db8::ff00:42:8329].

DomainName(String)

Holds a validated domain name; e.g. localhost, example.com, node01.us.example.org.

Trait Implementations

impl Clone for HostKind[src]

impl Debug for HostKind[src]

impl Display for HostKind[src]

impl Eq for HostKind[src]

impl Hash for HostKind[src]

impl Normalize for HostKind[src]

impl PartialEq<HostKind> for HostKind[src]

impl StructuralEq for HostKind[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.