pub trait Decoder {
type Item;
type Error: Debug;
// Required method
fn decode(
&self,
src: &mut BytesMut,
) -> Result<Option<Self::Item>, Self::Error>;
}Expand description
Decoding of frames via buffers.
pub trait Decoder {
type Item;
type Error: Debug;
// Required method
fn decode(
&self,
src: &mut BytesMut,
) -> Result<Option<Self::Item>, Self::Error>;
}Decoding of frames via buffers.