pub async fn recv_frame<T: Stream>(
stream: &mut T,
max_message_size: u32,
) -> Result<Bytes, Error>Expand description
Receives data from the stream with a varint length prefix. Returns an error if the message is too large, the varint is invalid, or the stream is closed.