pub struct RealClock;Expand description
System clock backed by SystemTime::now().
Trait Implementations§
Source§impl Clock for RealClock
impl Clock for RealClock
Source§fn now(&self) -> SystemTime
fn now(&self) -> SystemTime
Return the current wall-clock time.
impl Copy for RealClock
Auto Trait Implementations§
impl Freeze for RealClock
impl RefUnwindSafe for RealClock
impl Send for RealClock
impl Sync for RealClock
impl Unpin for RealClock
impl UnwindSafe for RealClock
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