Skip to main content

write_message

Function write_message 

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

Writes a length-prefixed CBOR message to the given writer.

Frame format: [len: u32 BE][CBOR payload]