Skip to main content

write_framed

Function write_framed 

Source
pub async fn write_framed<W: AsyncWrite + Unpin>(
    w: &mut W,
    body: &[u8],
) -> Result<()>
Expand description

Write a length-prefixed body (u32 big-endian length + bytes) to w.