Struct ntp_parser::ntp::NtpPacket
[−]
[src]
pub struct NtpPacket<'a> {
pub li: u8,
pub version: u8,
pub mode: NtpMode,
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 extensions: Vec<NtpExtension<'a>>,
pub auth: Option<NtpMac<'a>>,
}Fields
li: u8
version: u8
mode: NtpMode
stratum: u8
poll: i8
precision: i8
root_delay: u32
root_dispersion: u32
ref_id: u32
ts_ref: u64
ts_orig: u64
ts_recv: u64
ts_xmit: u64
extensions: Vec<NtpExtension<'a>>
auth: Option<NtpMac<'a>>
Methods
impl<'a> NtpPacket<'a>[src]
pub fn get_precision(&self) -> f32[src]
Trait Implementations
impl<'a> Debug for NtpPacket<'a>[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result[src]
Formats the value using the given formatter. Read more