pub trait WriteToBytes {
// Required method
fn write_to_bytes<W: WriteBytesExt>(&self, writer: W) -> Result<()>;
}Expand description
Protocol types that may be written to little endian bytes.
Required Methods§
Sourcefn write_to_bytes<W: WriteBytesExt>(&self, writer: W) -> Result<()>
fn write_to_bytes<W: WriteBytesExt>(&self, writer: W) -> Result<()>
Write the command to bytes.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".