pub trait WireDecode: Sized {
// Required method
fn wire_decode(buf: &[u8], pos: &mut usize) -> Option<Self>;
}Expand description
A value that reconstructs from the shared wire format.
Required Methods§
Sourcefn wire_decode(buf: &[u8], pos: &mut usize) -> Option<Self>
fn wire_decode(buf: &[u8], pos: &mut usize) -> Option<Self>
Read one value starting at *pos, advancing pos. None on any malformed input.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".