pub struct ServerTime {
pub unix_seconds: u64,
pub micros: u32,
pub stratum: u8,
}Expand description
Time reported by a server.
Fields§
§unix_seconds: u64Whole seconds since 1970-01-01 00:00:00 UTC.
micros: u32Sub-second part in microseconds.
stratum: u8Server stratum (1 = directly attached to a reference clock).
Trait Implementations§
Source§impl Clone for ServerTime
impl Clone for ServerTime
Source§fn clone(&self) -> ServerTime
fn clone(&self) -> ServerTime
Returns a duplicate of the value. Read more
1.0.0 (const: unstable)§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ServerTime
impl Debug for ServerTime
Source§impl Format for ServerTime
impl Format for ServerTime
Source§impl PartialEq for ServerTime
impl PartialEq for ServerTime
impl Copy for ServerTime
impl Eq for ServerTime
impl StructuralPartialEq for ServerTime
Auto Trait Implementations§
impl Freeze for ServerTime
impl RefUnwindSafe for ServerTime
impl Send for ServerTime
impl Sync for ServerTime
impl Unpin for ServerTime
impl UnsafeUnpin for ServerTime
impl UnwindSafe for ServerTime
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)