pub async fn write_frame<W>(stream: &mut W, payload: &[u8]) -> Result<()>where W: AsyncWrite + Unpin,
Write one length-prefixed frame.