[][src]Enum libzmq::addr::Port

pub enum Port {
    Specified(u16),
    Unspecified,
}

A port used by a socket address.

Example

use libzmq::{prelude::TryInto, addr::Port};

let port: Port = "*".try_into()?;
assert!(port.is_unspecified());

Variants

Specified(u16)

An specified port number.

Unspecified

A system specified ephemeral port.

Implementations

impl Port[src]

pub fn is_specified(self) -> bool[src]

pub fn is_unspecified(self) -> bool[src]

Trait Implementations

impl Clone for Port[src]

impl Copy for Port[src]

impl Debug for Port[src]

impl<'de> Deserialize<'de> for Port[src]

impl Display for Port[src]

impl Eq for Port[src]

impl FromStr for Port[src]

type Err = AddrParseError

The associated error which can be returned from parsing.

impl Hash for Port[src]

impl PartialEq<Port> for Port[src]

impl Serialize for Port[src]

impl StructuralEq for Port[src]

impl StructuralPartialEq for Port[src]

impl<'a> TryFrom<&'a String> for Port[src]

type Error = AddrParseError

The type returned in the event of a conversion error.

impl<'a> TryFrom<&'a str> for Port[src]

type Error = AddrParseError

The type returned in the event of a conversion error.

impl TryFrom<String> for Port[src]

type Error = AddrParseError

The type returned in the event of a conversion error.

Auto Trait Implementations

impl RefUnwindSafe for Port

impl Send for Port

impl Sync for Port

impl Unpin for Port

impl UnwindSafe for Port

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> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[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>,