Struct ntp_proto::SystemSnapshot
source · pub struct SystemSnapshot {
pub stratum: u8,
pub reference_id: ReferenceId,
pub accumulated_steps_threshold: Option<NtpDuration>,
pub time_snapshot: TimeSnapshot,
}Fields§
§stratum: u8Log of the precision of the local clock
reference_id: ReferenceIdReference ID of current primary time source
accumulated_steps_threshold: Option<NtpDuration>Crossing this amount of stepping will cause a Panic
time_snapshot: TimeSnapshotTimekeeping data
Implementations§
source§impl SystemSnapshot
impl SystemSnapshot
pub fn update_timedata(&mut self, timedata: TimeSnapshot, config: &SystemConfig)
pub fn update_used_peers( &mut self, used_peers: impl Iterator<Item = PeerSnapshot> )
Trait Implementations§
source§impl Clone for SystemSnapshot
impl Clone for SystemSnapshot
source§fn clone(&self) -> SystemSnapshot
fn clone(&self) -> SystemSnapshot
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 SystemSnapshot
impl Debug for SystemSnapshot
source§impl Default for SystemSnapshot
impl Default for SystemSnapshot
source§impl<'de> Deserialize<'de> for SystemSnapshot
impl<'de> Deserialize<'de> for SystemSnapshot
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 Serialize for SystemSnapshot
impl Serialize for SystemSnapshot
impl Copy for SystemSnapshot
Auto Trait Implementations§
impl RefUnwindSafe for SystemSnapshot
impl Send for SystemSnapshot
impl Sync for SystemSnapshot
impl Unpin for SystemSnapshot
impl UnwindSafe for SystemSnapshot
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