pub trait Decoder {
type Item: Debug;
type Error: Debug;
// Required method
fn decode(
&self,
src: &mut BytesMut,
) -> Result<Option<Self::Item>, Self::Error>;
}Expand description
Decoding of frames via buffers.
Required Associated Types§
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".