Skip to main content

read_frame_bytes

Function read_frame_bytes 

Source
pub async fn read_frame_bytes<R>(reader: &mut R) -> Result<Vec<u8>, CodecError>
where R: AsyncRead + Unpin,
Expand description

Read one frame’s payload, refusing an oversized one before reading it.