Skip to main content

write_message

Function write_message 

Source
pub async fn write_message<W>(writer: &mut W, message: &Message) -> Result<()>
where W: AsyncWrite + Unpin,
Expand description

Write message as a single length-prefixed frame to writer.

ยงErrors

Returns an error if encoding or the underlying write fails.