Struct ntp_proto::TimeSnapshot
source · pub struct TimeSnapshot {
pub poll_interval: PollInterval,
pub precision: NtpDuration,
pub root_delay: NtpDuration,
pub root_dispersion: NtpDuration,
pub leap_indicator: NtpLeapIndicator,
pub accumulated_steps: NtpDuration,
}Fields§
§poll_interval: PollIntervalDesired poll interval
precision: NtpDurationPrecision of the local clock
root_delay: NtpDurationCurrent root delay
root_dispersion: NtpDurationCurrent root dispersion
leap_indicator: NtpLeapIndicatorCurrent leap indicator state
accumulated_steps: NtpDurationTotal amount that the clock has stepped
Trait Implementations§
source§impl Clone for TimeSnapshot
impl Clone for TimeSnapshot
source§fn clone(&self) -> TimeSnapshot
fn clone(&self) -> TimeSnapshot
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for TimeSnapshot
impl Debug for TimeSnapshot
source§impl Default for TimeSnapshot
impl Default for TimeSnapshot
source§impl<'de> Deserialize<'de> for TimeSnapshot
impl<'de> Deserialize<'de> for TimeSnapshot
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq<TimeSnapshot> for TimeSnapshot
impl PartialEq<TimeSnapshot> for TimeSnapshot
source§fn eq(&self, other: &TimeSnapshot) -> bool
fn eq(&self, other: &TimeSnapshot) -> bool
This method tests for
self and other values to be equal, and is used
by ==.