pub struct Timer<C: Clock> { /* private fields */ }Expand description
A timer that records a duration when dropped.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<C> Freeze for Timer<C>
impl<C> !RefUnwindSafe for Timer<C>
impl<C> Send for Timer<C>
impl<C> Sync for Timer<C>
impl<C> Unpin for Timer<C>
impl<C> !UnwindSafe for Timer<C>
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