pub(crate) trait ReadLike { type Error; // Required method fn read(&mut self, buf: &mut [u8]) -> Result<usize, Self::Error>; }
A trait for reading bytes into a pipe.
The error type.
Reads bytes into the given buffer.