Skip to main content

read

Function read 

Source
pub fn read<R: Read>(r: &mut R) -> Result<Option<Frame>>
Expand description

Reads one frame. Returns Ok(None) only when the stream ends cleanly at a frame boundary. A mid-frame end is an UnexpectedEof I/O error.