Skip to main content

write_frame

Function write_frame 

Source
pub async fn write_frame<W: AsyncWrite + Unpin>(
    w: &mut W,
    frame: &Frame,
) -> Result<(), CodecError>
Expand description

Write one frame: a 4-byte big-endian length prefix, then the CBOR body.