Trait nippy::protocol::WriteBytes[][src]

pub trait WriteBytes {
    fn write_bytes<P: WriteToBytes>(&mut self, protocol: P) -> Result<()>;
}

A trait for writing any of the Network Time Protocol types to network-endian bytes.

A blanket implementation is provided for all types that implement byteorder::WriteBytesExt.

Required methods

fn write_bytes<P: WriteToBytes>(&mut self, protocol: P) -> Result<()>[src]

Loading content...

Implementors

impl<W> WriteBytes for W where
    W: WriteBytesExt
[src]

Loading content...