pub struct InstantClock;Expand description
A Clock that reads std::time::Instant::now.
Trait Implementations§
Source§impl Clock for InstantClock
impl Clock for InstantClock
type Time = InstantTime
type Calibration = InherentlyCalibrated
Source§impl Clone for InstantClock
impl Clone for InstantClock
Source§fn clone(&self) -> InstantClock
fn clone(&self) -> InstantClock
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for InstantClock
Auto Trait Implementations§
impl Freeze for InstantClock
impl RefUnwindSafe for InstantClock
impl Send for InstantClock
impl Sync for InstantClock
impl Unpin for InstantClock
impl UnsafeUnpin for InstantClock
impl UnwindSafe for InstantClock
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