pub trait Decode: Sized {
// Required method
fn decode(r: &mut Reader<'_>) -> DecodeResult<Self>;
}Expand description
A value that can be decoded from protocol bytes.
Required Methods§
Sourcefn decode(r: &mut Reader<'_>) -> DecodeResult<Self>
fn decode(r: &mut Reader<'_>) -> DecodeResult<Self>
Decodes one value, advancing the reader past it.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".