[][src]Struct runng::protocol::rep0::Rep0

pub struct Rep0 { /* fields omitted */ }

Reply half of request/reply pattern. See nng_rep.

Methods

impl Rep0[src]

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

Create a new reply socket. See nng_rep_open.

Trait Implementations

impl AsyncSocket for Rep0[src]

type ContextType = ReplyAsyncHandle

The type of aynchronous context produced

impl AsyncStream for Rep0[src]

type ContextType = ReplyStreamHandle

The type of aynchronous context produced

impl Clone for Rep0[src]

impl Debug for Rep0[src]

impl Dial for Rep0[src]

impl GetOpts for Rep0[src]

fn get_bool(&self, option: NngOption) -> Result<bool>[src]

Get bool option. See #get_bool

fn get_int(&self, option: NngOption) -> Result<i32>[src]

Get i32 option. See #get_int

fn get_ms(&self, option: NngOption) -> Result<i32>[src]

Get nng_duration option. See #get_ms

fn get_size(&self, option: NngOption) -> Result<usize>[src]

Get usize option. See #get_size

fn get_uint64(&self, option: NngOption) -> Result<u64>[src]

Get u64 option. See #get_uint64

fn get_string(&self, option: NngOption) -> Result<NngString>[src]

Get NngString option. See #get_string

impl GetSocket for Rep0[src]

impl Listen for Rep0[src]

impl RecvSocket for Rep0[src]

impl SendSocket for Rep0[src]

impl SetOpts for Rep0[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 Rep0[src]

Auto Trait Implementations

impl RefUnwindSafe for Rep0

impl Send for Rep0

impl Sync for Rep0

impl Unpin for Rep0

impl UnwindSafe for Rep0

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.