decode_raw_header

Function decode_raw_header 

Source
pub async fn decode_raw_header<T: AsyncRead + Unpin>(
    reader: &mut T,
) -> Result<(u8, u32), Error>
Expand description

Read first byte(packet type and flags) and decode remaining length