Function netcore::framing::read_u16frame
source · pub async fn read_u16frame<'stream, 'buf, 'c, TSocket>(
stream: &'stream mut TSocket,
buf: &'buf mut BytesMut
) -> Result<()>where
TSocket: AsyncRead + Unpin,
'stream: 'c,
'buf: 'c,
Expand description
Read a u16 length prefixed frame from Stream
into buf
.