pub trait BinaryDecode: Sized {
// Required method
fn decode(decoder: &mut DecodedData<'_>) -> Result<Self, DecodeError>;
}Expand description
Trait for decoding values from the binary protocol. Each type specifies how to deserialize itself.
Required Methods§
fn decode(decoder: &mut DecodedData<'_>) -> Result<Self, DecodeError>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.