pub trait ReadFromBytes: Sized {
// Required method
fn read_from_bytes<R>(reader: R) -> Result<Self, Error>
where R: ReadBytesExt;
}Expand description
Network Time Protocol types that may be read from network endian bytes.
Requires the std feature.
Required Methods§
Sourcefn read_from_bytes<R>(reader: R) -> Result<Self, Error>where
R: ReadBytesExt,
fn read_from_bytes<R>(reader: R) -> Result<Self, Error>where
R: ReadBytesExt,
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.