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

Associated Types

Required methods

Implementors