pub struct Clock<T> { /* private fields */ }Expand description
A generic structure that represents a clock.
It can be either the working clock (production) or the stopped clock
(testing). It implements the Time trait, which gives you the current time.
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for Clock<T>
impl<T> RefUnwindSafe for Clock<T>where
T: RefUnwindSafe,
impl<T> Send for Clock<T>where
T: Send,
impl<T> Sync for Clock<T>where
T: Sync,
impl<T> Unpin for Clock<T>where
T: Unpin,
impl<T> UnsafeUnpin for Clock<T>
impl<T> UnwindSafe for Clock<T>where
T: UnwindSafe,
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