Skip to main content

ReadFromBytes

Trait ReadFromBytes 

Source
pub trait ReadFromBytes: Sized {
    // Required method
    fn read_from_bytes<R: ReadBytesExt>(reader: R) -> Result<Self>;
}
Expand description

Protocol types that may be read from little endian bytes.

Required Methods§

Source

fn read_from_bytes<R: ReadBytesExt>(reader: R) -> Result<Self>

Read the command from bytes.

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.

Implementors§