pub fn read<R: Read>(r: &mut R) -> Result<Option<Frame>>
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.
Ok(None)
UnexpectedEof