pub struct BootTimeClock;
Expand description
Interface to the CLOCK_BOOTTIME Linux clock
This clock is monotonic (does not jump back in time), but durations may
inflate and deflate during clock calibration events (e.g. NTP
synchronizations). The resolution is hardware-dependent, but can be queried
using the underlying PosixClock
trait. Suspend is correctly handled, i.e.
the clock will jump forward by the sleep duration.
Trait Implementations§
Source§impl Default for BootTimeClock
impl Default for BootTimeClock
Source§fn default() -> BootTimeClock
fn default() -> BootTimeClock
Returns the “default value” for a type. Read more
Source§impl PosixClock for BootTimeClock
impl PosixClock for BootTimeClock
Source§fn resolution_raw() -> timespec
fn resolution_raw() -> timespec
Check the resolution (precision) of this clock, in POSIX format
Source§fn resolution() -> Duration
fn resolution() -> Duration
Check the resolution (precision) of this clock, in this crate’s format
Auto Trait Implementations§
impl Freeze for BootTimeClock
impl RefUnwindSafe for BootTimeClock
impl Send for BootTimeClock
impl Sync for BootTimeClock
impl Unpin for BootTimeClock
impl UnwindSafe for BootTimeClock
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