[][src]Trait runng::socket::SendSocket

pub trait SendSocket: Socket {
    fn send(&self, data: &[u8]) -> Result<()> { ... }
fn send_flags(&self, data: &[u8], flags: Flags) -> Result<()> { ... }
fn send_zerocopy(&self, data: Alloc) -> Result<(), SendError<Alloc>> { ... }
fn send_zerocopy_flags(
        &self,
        data: Alloc,
        flags: Flags
    ) -> Result<(), SendError<Alloc>> { ... }
fn sendmsg(&self, msg: NngMsg) -> Result<()> { ... }
fn sendmsg_flags(
        &self,
        msg: NngMsg,
        flags: Flags
    ) -> Result<(), SendError<NngMsg>> { ... } }

Socket that can send data.

Provided methods

fn send(&self, data: &[u8]) -> Result<()>

Send data. See nng_send.

fn send_flags(&self, data: &[u8], flags: Flags) -> Result<()>

Send data with Flags. See nng_send.

fn send_zerocopy(&self, data: Alloc) -> Result<(), SendError<Alloc>>

Sends data in "zero-copy" mode. See NNG_FLAG_ALLOC.

fn send_zerocopy_flags(
    &self,
    data: Alloc,
    flags: Flags
) -> Result<(), SendError<Alloc>>

Send data in "zero-copy" mode with Flags. See NNG_FLAG_ALLOC.

fn sendmsg(&self, msg: NngMsg) -> Result<()>

Send a NngMsg. See nng_sendmsg.

fn sendmsg_flags(
    &self,
    msg: NngMsg,
    flags: Flags
) -> Result<(), SendError<NngMsg>>

Send a NngMsg with Flags. See nng_sendmsg.

Loading content...

Implementors

impl SendSocket for Bus0[src]

impl SendSocket for Pair0[src]

impl SendSocket for Pair1[src]

impl SendSocket for Pub0[src]

impl SendSocket for Push0[src]

impl SendSocket for Rep0[src]

impl SendSocket for Req0[src]

impl SendSocket for NngSocket[src]

Loading content...