pub trait DeserializeBytes: Sized {
// Required method
fn deserialize(read_buf: impl Buf) -> Result<Self, SerializationError>;
}Expand description
Deserialize data from a byte buffer.
Required Methods§
fn deserialize(read_buf: impl Buf) -> Result<Self, SerializationError>
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.