pub struct TimeGuard<'a> { /* private fields */ }Expand description
RAII guard attached to a Timer instance, will record the time passed since its creation when dropped.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for TimeGuard<'a>
impl<'a> !RefUnwindSafe for TimeGuard<'a>
impl<'a> Send for TimeGuard<'a>
impl<'a> Sync for TimeGuard<'a>
impl<'a> Unpin for TimeGuard<'a>
impl<'a> UnsafeUnpin for TimeGuard<'a>
impl<'a> !UnwindSafe for TimeGuard<'a>
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