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 ==.source§impl Serialize for TimeSnapshot
impl Serialize for TimeSnapshot
impl Copy for TimeSnapshot
impl Eq for TimeSnapshot
impl StructuralEq for TimeSnapshot
impl StructuralPartialEq for TimeSnapshot
Auto Trait Implementations§
impl RefUnwindSafe for TimeSnapshot
impl Send for TimeSnapshot
impl Sync for TimeSnapshot
impl Unpin for TimeSnapshot
impl UnwindSafe for TimeSnapshot
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more