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.
pub async fn read_frame<R: AsyncReadExt + Unpin>(
reader: &mut R,
) -> Result<Option<SocketFrame>>Read one router → client record. Ok(None) on clean EOF; a body shorter
than the header is InvalidData.