Skip to main content

read_frame

Function read_frame 

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

Read one router → client record. Ok(None) on clean EOF; a body shorter than the header is InvalidData.