pub async fn read_message( stream: &mut TcpStream, buf: &mut Vec<u8>, wait: Duration, ) -> ReadMessageOutcome
Read one framed message from stream, retaining incomplete bytes in buf.
stream
buf