Skip to main content

write_frame

Function write_frame 

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

Write one length-prefixed frame to an async writer.