pub trait WireDecode: Sized {
// Required method
fn decode_wire(cursor: &mut WireCursor<'_>) -> Result<Self, WireError>;
// Provided method
fn from_wire_bytes(bytes: &[u8]) -> Result<Self, WireError> { ... }
}Required Methods§
fn decode_wire(cursor: &mut WireCursor<'_>) -> Result<Self, WireError>
Provided Methods§
fn from_wire_bytes(bytes: &[u8]) -> Result<Self, WireError>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".