Skip to main content

read_frame

Function read_frame 

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

Read a length-prefixed JSON frame from a tokio AsyncRead.