pub enum SystemClock {
Realtime,
Monotonic,
MonotonicRaw,
Tai,
}Expand description
One of this computer’s clocks, to compare a hardware clock with.
Variants§
Realtime
The wall clock, which NTP steps and slews.
Monotonic
The clock std::time::Instant and sleeps run on: slewed by NTP,
never stepped.
MonotonicRaw
The oscillator as it runs, which nothing adjusts.
Tai
International atomic time: the wall clock and the kernel’s TAI offset, which is zero until something such as chrony sets it.
Trait Implementations§
Source§impl Clone for SystemClock
impl Clone for SystemClock
impl Copy for SystemClock
Source§impl Debug for SystemClock
impl Debug for SystemClock
impl Eq for SystemClock
Source§impl PartialEq for SystemClock
impl PartialEq for SystemClock
impl StructuralPartialEq for SystemClock
Auto Trait Implementations§
impl Freeze for SystemClock
impl RefUnwindSafe for SystemClock
impl Send for SystemClock
impl Sync for SystemClock
impl Unpin for SystemClock
impl UnsafeUnpin for SystemClock
impl UnwindSafe for SystemClock
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