pub trait Read { // Required method fn read(&mut self, buf: &mut [u8]) -> Result<usize>; }
Minimal read abstraction used by this crate in both std and no‑std modes.
Fills buf with bytes from the underlying source, returning the number of bytes read or an error if no data is available.
buf