pub struct NetworkTimeReading {
pub time: PartialNetworkTime,
pub unix_time_ms: Option<u64>,
}Expand description
Best-effort current network-time reading from the assembled clock state.
Fields§
§time: PartialNetworkTimePartial or complete calendar/time-of-day reading.
unix_time_ms: Option<u64>Absolute Unix milliseconds when the reading is complete enough to derive them.
Trait Implementations§
Source§impl Clone for NetworkTimeReading
impl Clone for NetworkTimeReading
Source§fn clone(&self) -> NetworkTimeReading
fn clone(&self) -> NetworkTimeReading
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 NetworkTimeReading
impl Debug for NetworkTimeReading
impl Eq for NetworkTimeReading
Source§impl PartialEq for NetworkTimeReading
impl PartialEq for NetworkTimeReading
Source§fn eq(&self, other: &NetworkTimeReading) -> bool
fn eq(&self, other: &NetworkTimeReading) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for NetworkTimeReading
Auto Trait Implementations§
impl Freeze for NetworkTimeReading
impl RefUnwindSafe for NetworkTimeReading
impl Send for NetworkTimeReading
impl Sync for NetworkTimeReading
impl Unpin for NetworkTimeReading
impl UnsafeUnpin for NetworkTimeReading
impl UnwindSafe for NetworkTimeReading
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