Trait ntex_codec::Decoder
source · [−]pub trait Decoder {
type Item;
type Error: Debug;
fn decode(
&self,
src: &mut BytesMut
) -> Result<Option<Self::Item>, Self::Error>;
fn decode_vec(
&self,
src: &mut BytesVec
) -> Result<Option<Self::Item>, Self::Error> { ... }
}
Expand description
Decoding of frames via buffers.