Skip to main content

read_frame

Function read_frame 

Source
pub fn read_frame<T: Schema>(r: &mut impl Read) -> Result<Option<T>>
Expand description

The next message; None where the stream ends between frames.

§Errors

The reader’s I/O error, or io::ErrorKind::InvalidData for a frame that isn’t a T.