Skip to main content

send_msg

Function send_msg 

Source
pub fn send_msg<W: Write>(w: &mut W, msg: &Msg) -> Result<()>
Expand description

Serialize and write one framed message, flushing the stream.

ยงErrors

Returns Error::Protocol if the message cannot be serialized or exceeds MAX_FRAME, or an I/O error if the write fails.