pub struct Monotonic;
Expand description
A monotonically increasing clock.
A nonsettable system-wide clock that represents monotonic time since as described by POSIX, “some unspecified point in the past”. On Linux, that point corresponds to the number of seconds that the system has been running since it was booted.
The CLOCK_MONOTONIC clock is not affected by discontinuous jumps in the CLOCK_REAL (e.g., if the system administrator manually changes the clock), but is affected by frequency adjustments. This clock does not count time that the system is suspended.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Monotonic
impl RefUnwindSafe for Monotonic
impl Send for Monotonic
impl Sync for Monotonic
impl Unpin for Monotonic
impl UnwindSafe for Monotonic
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
Source§impl<T> PinInit<T> for T
impl<T> PinInit<T> for T
Source§unsafe fn __pinned_init(self, slot: *mut T) -> Result<(), Infallible>
unsafe fn __pinned_init(self, slot: *mut T) -> Result<(), Infallible>
Initializes
slot
. Read more