[][src]Struct libzmq::EpgmAddr

pub struct EpgmAddr { /* fields omitted */ }

A socket address with the Encapsulated PGM transport.

Example

use libzmq::{prelude::TryInto, EpgmAddr};

// Connecting to the multicast address 239.192.1.1, port 5555,
// using the first Ethernet network interface on Linux
// and the Encapsulated PGM protocol.
let addr: EpgmAddr = "eth0;239.192.1.1:5555".try_into()?;

Implementations

impl EpgmAddr[src]

pub fn new<H>(host: H) -> Self where
    H: Into<SocketAddr>, 
[src]

pub fn add_src<S>(self, src: S) -> Self where
    S: Into<SrcAddr>, 
[src]

A source address can be specified when a client communicate with a public server from behind a private network. This allows the server's replies to be routed properly.

pub fn host(&self) -> &SocketAddr[src]

pub fn src(&self) -> Option<&SrcAddr>[src]

Trait Implementations

impl Clone for EpgmAddr[src]

impl Debug for EpgmAddr[src]

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

impl Display for EpgmAddr[src]

impl Eq for EpgmAddr[src]

impl<'a> From<&'a EpgmAddr> for Endpoint[src]

impl From<EpgmAddr> for Endpoint[src]

impl From<SocketAddr> for EpgmAddr[src]

impl FromStr for EpgmAddr[src]

type Err = AddrParseError

The associated error which can be returned from parsing.

impl Hash for EpgmAddr[src]

impl IntoIterator for EpgmAddr[src]

type Item = Self

The type of the elements being iterated over.

type IntoIter = IntoIter<Self>

Which kind of iterator are we turning this into?

impl<'a> IntoIterator for &'a EpgmAddr[src]

type Item = Self

The type of the elements being iterated over.

type IntoIter = IntoIter<Self>

Which kind of iterator are we turning this into?

impl PartialEq<EpgmAddr> for EpgmAddr[src]

impl Serialize for EpgmAddr[src]

impl StructuralEq for EpgmAddr[src]

impl StructuralPartialEq for EpgmAddr[src]

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

type Error = AddrParseError

The type returned in the event of a conversion error.

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

type Error = AddrParseError

The type returned in the event of a conversion error.

impl TryFrom<String> for EpgmAddr[src]

type Error = AddrParseError

The type returned in the event of a conversion error.

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> 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<I> IntoIterator for I where
    I: Iterator
[src]

type Item = <I as Iterator>::Item

The type of the elements being iterated over.

type IntoIter = I

Which kind of iterator are we turning this into?

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>,