Trait async_codec_lite::Decoder
source · [−]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> { ... }
}