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§
Sourcefn write_to_bytes<W>(&self, writer: W) -> Result<(), Error>where
W: WriteBytesExt,
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".