pub struct TimeSyncSource {
pub sender: String,
pub priority: u64,
pub last_announce_ms: u64,
pub last_time_ms: u64,
}Expand description
Snapshot of a remote time source learned from announce traffic.
Fields§
§sender: StringSender identifier for the remote source.
priority: u64Advertised source priority. Lower is better.
last_announce_ms: u64Monotonic receive time, in milliseconds, of the last announce.
last_time_ms: u64Network time value carried by the last announce, in Unix milliseconds.
Trait Implementations§
Source§impl Clone for TimeSyncSource
impl Clone for TimeSyncSource
Source§fn clone(&self) -> TimeSyncSource
fn clone(&self) -> TimeSyncSource
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 TimeSyncSource
impl Debug for TimeSyncSource
impl Eq for TimeSyncSource
Source§impl PartialEq for TimeSyncSource
impl PartialEq for TimeSyncSource
Source§fn eq(&self, other: &TimeSyncSource) -> bool
fn eq(&self, other: &TimeSyncSource) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for TimeSyncSource
Auto Trait Implementations§
impl Freeze for TimeSyncSource
impl RefUnwindSafe for TimeSyncSource
impl Send for TimeSyncSource
impl Sync for TimeSyncSource
impl Unpin for TimeSyncSource
impl UnsafeUnpin for TimeSyncSource
impl UnwindSafe for TimeSyncSource
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