[][src]Enum zeromq::Host

pub enum Host {
    Ipv4(Ipv4Addr),
    Ipv6(Ipv6Addr),
    Domain(String),
}

Represents a host address. Does not include the port, and may be either an ip address or a domain name

Variants

Ipv4(Ipv4Addr)

An IPv4 address

Ipv6(Ipv6Addr)

An Ipv6 address

Domain(String)

A domain name, such as example.com in tcp://example.com:4567.

Trait Implementations

impl Clone for Host[src]

impl Debug for Host[src]

impl Display for Host[src]

impl Eq for Host[src]

impl From<IpAddr> for Host[src]

impl FromStr for Host[src]

type Err = EndpointError

The associated error which can be returned from parsing.

pub fn from_str(s: &str) -> Result<Self, Self::Err>[src]

Equivalent to TryFrom<String>

impl Hash for Host[src]

impl PartialEq<Host> for Host[src]

impl StructuralEq for Host[src]

impl StructuralPartialEq for Host[src]

impl TryFrom<Host> for IpAddr[src]

type Error = ZmqError

The type returned in the event of a conversion error.

impl TryFrom<String> for Host[src]

type Error = EndpointError

The type returned in the event of a conversion error.

pub fn try_from(s: String) -> Result<Self, Self::Error>[src]

An Ipv6 address must be enclosed by [ and ].

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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,