[][src]Struct runng::protocol::pair1::Pair1

pub struct Pair1 { /* fields omitted */ }

Half of pair pattern. See nng_pair.

Methods

impl Pair1[src]

pub fn open() -> Result<Self>[src]

Create a new pair socket. See nng_pair_open.

Trait Implementations

impl AsyncSocket for Pair1[src]

type ContextType = PairAsyncHandle

The type of aynchronous context produced

impl AsyncStream for Pair1[src]

type ContextType = PairStreamHandle

The type of aynchronous context produced

impl Clone for Pair1[src]

impl Debug for Pair1[src]

impl Dial for Pair1[src]

impl GetSocket for Pair1[src]

impl Listen for Pair1[src]

impl RecvSocket for Pair1[src]

impl SendSocket for Pair1[src]

impl SetOpts for Pair1[src]

fn set_bool(&mut self, option: NngOption, value: bool) -> Result<&mut Self>[src]

Set bool NngOption. See #set_bool

fn set_int(&mut self, option: NngOption, value: i32) -> Result<&mut Self>[src]

See #set_int

fn set_ms(&mut self, option: NngOption, value: i32) -> Result<&mut Self>[src]

See #set_ms

fn set_size(&mut self, option: NngOption, value: usize) -> Result<&mut Self>[src]

See #set_size

fn set_uint64(&mut self, option: NngOption, value: u64) -> Result<&mut Self>[src]

See #set_uint64

fn set_string(&mut self, option: NngOption, value: &str) -> Result<&mut Self>[src]

See #set_string

impl Socket for Pair1[src]

Auto Trait Implementations

impl RefUnwindSafe for Pair1

impl Send for Pair1

impl Sync for Pair1

impl Unpin for Pair1

impl UnwindSafe for Pair1

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