pub async fn write_frame<W>(w: &mut W, body: &[u8]) -> Result<()>where
W: AsyncWrite + Unpin,Expand description
Write a single framed blob.
ยงErrors
Returns io::ErrorKind::InvalidInput if body.len() > MAX_FRAME_BYTES.
Propagates write and flush errors from the underlying async writer.