pub struct SystemClock { /* private fields */ }Expand description
System-backed clock.
Implementations§
Source§impl SystemClock
impl SystemClock
Trait Implementations§
Source§impl Clock for SystemClock
impl Clock for SystemClock
Source§fn monotonic_millis(&self) -> u64
fn monotonic_millis(&self) -> u64
Monotonic milliseconds used for elapsed-duration measurements.
Source§fn epoch_seconds(&self) -> u64
fn epoch_seconds(&self) -> u64
Unix epoch seconds used for wall-clock timestamps.
Source§impl Debug for SystemClock
impl Debug 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