Skip to main content

WriteToBytes

Trait WriteToBytes 

Source
pub trait WriteToBytes {
    // Required method
    fn write_to_bytes<W>(&self, writer: W) -> Result<(), Error>
       where W: WriteBytesExt;
}
Expand description

Network Time Protocol types that may be written to network endian bytes. Requires the std feature.

Required Methods§

Source

fn write_to_bytes<W>(&self, writer: W) -> Result<(), Error>
where W: WriteBytesExt,

Write the command to 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 WriteToBytes for (LeapIndicator, Version, Mode)

Source§

fn write_to_bytes<W>(&self, writer: W) -> Result<(), Error>
where W: WriteBytesExt,

Source§

impl<P> WriteToBytes for &P
where P: WriteToBytes,

Source§

fn write_to_bytes<W>(&self, writer: W) -> Result<(), Error>
where W: WriteBytesExt,

Implementors§