[−][src]Struct ntpd::NtpPacket
Ntp package format:
0 1 2 3
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+--------------+---------------+---------------+----------------+
|LI | VN |Mode | Stratum | Poll | Precision |
+--------------+---------------+---------------+----------------+
| Root Delay |
+--------------+---------------+---------------+----------------+
| Root Dispersion |
+--------------+---------------+---------------+----------------+
| Reference ID |
+--------------+---------------+---------------+----------------+
| |
+ Reference Timestamp (64) +
| |
+--------------+---------------+---------------+----------------+
| |
+ Origin Timestamp (64) +
| |
+--------------+---------------+---------------+----------------+
| |
+ Receive Timestamp (64) +
| |
+--------------+---------------+---------------+----------------+
| |
+ Transmit Timestamp (64) +
| |
+--------------+---------------+---------------+----------------+
| |
. .
. Extension Field 1 (variable) .
. .
| |
+--------------+---------------+---------------+----------------+
| |
. .
. Extension Field 2 (variable) .
. .
| |
+--------------+---------------+---------------+----------------+
| Key Identifier |
+--------------+---------------+---------------+----------------+
| |
| dgst (128) |
| |
+--------------+---------------+---------------+----------------+
Fields
header: Header
root_delay: ShortTimestamp
root_dispersion: ShortTimestamp
ref_id: RefIdentifier
ref_timestamp: Timestamp
origin_timestamp: Timestamp
receive_timestamp: Timestamp
transmit_timestamp: Timestamp
Methods
impl NtpPacket
[src]
Trait Implementations
impl BinLen for NtpPacket
[src]
impl Clone for NtpPacket
[src]
impl Copy for NtpPacket
[src]
impl Debug for NtpPacket
[src]
impl Default for NtpPacket
[src]
impl Eq for NtpPacket
[src]
impl Hash for NtpPacket
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl PartialEq<NtpPacket> for NtpPacket
[src]
impl StructuralEq for NtpPacket
[src]
impl StructuralPartialEq for NtpPacket
[src]
impl ToNetPacket for NtpPacket
[src]
Auto Trait Implementations
impl RefUnwindSafe for NtpPacket
impl Send for NtpPacket
impl Sync for NtpPacket
impl Unpin for NtpPacket
impl UnwindSafe for NtpPacket
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,