pub trait Encoder { type Item; type Error: From<Error>; // Required method fn encode( &mut self, item: Self::Item, dst: &mut BytesMut, ) -> Result<(), Self::Error>; }
The type of items consumed by the Encoder
Encoder