pub trait Decoder {
    type Item;
    type Error: Error + 'static;

    fn decode(
        &mut self,
        src: &mut BytesMut
    ) -> Result<Option<Self::Item>, Self::Error>; fn decode_eof(
        &mut self,
        src: &mut BytesMut
    ) -> Result<Option<Self::Item>, Self::Error> { ... } }

Required Associated Types

Required Methods

Provided Methods

Implementors