Skip to main content

write_frame

Function write_frame 

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

Write a single framed blob. Returns io::ErrorKind::InvalidInput if body.len() > MAX_FRAME_BYTES.