recv_frame

Function recv_frame 

Source
async fn recv_frame<R>(r: &mut R) -> Result<(Header, Vec<u8>), NetworkError>
where R: AsyncRead + Unpin,
Expand description

Read a single frame (header + payload) from the remote.