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

Network Time Protocol types that may be read from network endian bytes. Requires the std feature.

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.

Implementations on Foreign Types§

Source§

impl ReadFromBytes for (LeapIndicator, Version, Mode)

Available on crate feature std only.
Source§

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

Implementors§

Source§

impl ReadFromBytes for DateFormat

Available on crate feature std only.
Source§

impl ReadFromBytes for Packet

Available on crate feature std only.
Source§

impl ReadFromBytes for ShortFormat

Available on crate feature std only.
Source§

impl ReadFromBytes for Stratum

Available on crate feature std only.
Source§

impl ReadFromBytes for TimestampFormat

Available on crate feature std only.