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 message to the given writer.

Frame format: [len: u32 BE][id: u32 BE][flags: u8][CBOR(v, t, p)]