Skip to main content

read_frame

Function read_frame 

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

Read one length-prefixed frame (4-byte BE u32 length + JSON bytes).