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]
pub async fn write_message<W: AsyncWrite + Unpin>(
writer: &mut W,
message: &Message,
) -> ProtocolResult<()>Writes a length-prefixed CBOR message to the given writer.
Frame format: [len: u32 BE][CBOR payload]