Trait nippy::protocol::ReadBytes[][src]

pub trait ReadBytes {
    fn read_bytes<P: ReadFromBytes>(&mut self) -> Result<P>;
}

A trait for reading any of the Network Time Protocol types from network-endian bytes.

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

Required methods

fn read_bytes<P: ReadFromBytes>(&mut self) -> Result<P>[src]

Loading content...

Implementors

impl<R> ReadBytes for R where
    R: ReadBytesExt
[src]

Loading content...