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