Skip to main content

ReadFromBytes

Trait ReadFromBytes 

Source
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§

Source

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.

Implementations on Foreign Types§

Source§

impl ReadFromBytes for (LeapIndicator, Version, Mode)

Implementors§