Expand description
The reader and writer traits used by the encoder and decoder.
With the std feature (enabled by default), Read and Write are
implemented for every std::io::Read and std::io::Write, and
Error is std::io::Error — pass std::io types everywhere and
this module disappears from view.
Without std, the traits are implemented for byte slices (&[u8] reads
from the front, &mut [u8] writes to the front) and, with the alloc
feature, for Vec<u8>; Error is a minimal replacement carrying an
ErrorKind. Implement the traits directly to read from or write to
anything else, such as a peripheral or a network buffer.
Structs§
Enums§
- Error
Kind - A list specifying general categories of I/O error.