[−][src]Trait runng::socket::SendSocket
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<()>
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>>
&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>>
&self,
msg: NngMsg,
flags: Flags
) -> Result<(), SendError<NngMsg>>
Send a NngMsg
with Flags
. See nng_sendmsg.