Skip to main content

write_frame

Function write_frame 

Source
pub async fn write_frame<W: AsyncWriteExt + Unpin>(
    writer: &mut W,
    data: &[u8],
) -> Result<()>
Expand description

Write a length-prefixed JSON frame to a tokio AsyncWrite.