pub trait Decode: Sized {
// Required method
fn decode(buf: &mut impl Buf) -> Result<Self>;
}Expand description
Decodes a value from a byte buffer.
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".