Skip to main content

write_frame

Function write_frame 

Source
pub async fn write_frame<W: AsyncWrite + Unpin + ?Sized>(
    io: &mut W,
    message: &[u8],
) -> Result<()>
Expand description

write_frame over a tokio stream.

§Errors

InvalidInput when message is longer than MAX_MESSAGE; otherwise the stream’s error.