pub trait Encoder {
type Item;
type Error: Error + 'static;
// Required method
fn encode(
&mut self,
item: Self::Item,
dst: &mut BytesMut,
) -> Result<(), Self::Error>;
}
pub trait Encoder {
type Item;
type Error: Error + 'static;
// Required method
fn encode(
&mut self,
item: Self::Item,
dst: &mut BytesMut,
) -> Result<(), Self::Error>;
}