Struct ntp_parser::ntp::NtpPacket [] [src]

pub struct NtpPacket<'a> {
    pub li: u8,
    pub version: u8,
    pub mode: u8,
    pub stratum: u8,
    pub poll: i8,
    pub precision: i8,
    pub root_delay: u32,
    pub root_dispersion: u32,
    pub ref_id: u32,
    pub ts_ref: u64,
    pub ts_orig: u64,
    pub ts_recv: u64,
    pub ts_xmit: u64,
    pub ext_and_auth: Option<(Vec<NtpExtension<'a>>, (u32, &'a [u8]))>,
    pub auth: Option<(u32, &'a [u8])>,
}

Fields

Methods

impl<'a> NtpPacket<'a>
[src]

Trait Implementations

impl<'a> Debug for NtpPacket<'a>
[src]

Formats the value using the given formatter.

impl<'a> PartialEq for NtpPacket<'a>
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.