pub trait Decoder<Item> { type Error: From<Error>; // Required method fn decode(&mut self, buf: &[u8]) -> Result<Item, Self::Error>; }
Trait for decoding byte sequences back into structured items.
Errors happened during the decoding process
Decodes a byte sequence into an item.