pub fn read_frame<T: Schema>(r: &mut impl Read) -> Result<Option<T>>
The next message; None where the stream ends between frames.
None
The reader’s I/O error, or io::ErrorKind::InvalidData for a frame that isn’t a T.
io::ErrorKind::InvalidData
T