pub trait ReadFromBytes: Sized {
// Required method
fn read_from_bytes<R: ReadBytesExt>(reader: R) -> Result<Self>;
}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: ReadBytesExt>(reader: R) -> Result<Self>
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.
Implementations on Foreign Types§
Source§impl ReadFromBytes for (LeapIndicator, Version, Mode)
Available on crate feature std only.
impl ReadFromBytes for (LeapIndicator, Version, Mode)
Available on crate feature
std only.fn read_from_bytes<R: ReadBytesExt>(reader: R) -> Result<Self>
Implementors§
impl ReadFromBytes for DateFormat
Available on crate feature
std only.impl ReadFromBytes for Packet
Available on crate feature
std only.impl ReadFromBytes for ShortFormat
Available on crate feature
std only.impl ReadFromBytes for Stratum
Available on crate feature
std only.impl ReadFromBytes for TimestampFormat
Available on crate feature
std only.