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