[][src]Struct libzmq::PgmAddr

pub struct PgmAddr { /* fields omitted */ }

A socket address with the PGM transport.

Example

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

// Connecting to the multicast address 239.192.1.1, port 5555,
// using the network interface with the address 192.168.1.1
// and the PGM protocol
let addr: PgmAddr = "192.168.1.1;239.192.1.1:5555".try_into()?;

Methods

impl PgmAddr[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 Eq for PgmAddr[src]

impl PartialEq<PgmAddr> for PgmAddr[src]

impl Clone for PgmAddr[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl From<SocketAddr> for PgmAddr[src]

impl From<PgmAddr> for Endpoint[src]

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

impl IntoIterator for PgmAddr[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 PgmAddr[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 Debug for PgmAddr[src]

impl Display for PgmAddr[src]

impl Hash for PgmAddr[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 FromStr for PgmAddr[src]

type Err = AddrParseError

The associated error which can be returned from parsing.

impl TryFrom<String> for PgmAddr[src]

type Error = AddrParseError

The type returned in the event of a conversion error.

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

type Error = AddrParseError

The type returned in the event of a conversion error.

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

type Error = AddrParseError

The type returned in the event of a conversion error.

impl Serialize for PgmAddr[src]

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

Auto Trait Implementations

impl Send for PgmAddr

impl Sync for PgmAddr

Blanket Implementations

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

type Owned = T

The resulting type after obtaining ownership.

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

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

impl<T> From<T> for 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, 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<T> BorrowMut<T> for T where
    T: ?Sized
[src]

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

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

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]