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> { ... } }

Associated Types

Required methods

Provided methods

Implementors