pub struct TimedGuard<'a> { /* private fields */ }Expand description
Drop-on-end guard returned by TimedTask::guard. Calls
TimedTask::end_if_started in its destructor so a function with
many exit paths can wrap a section with a single line.
Implementations§
Source§impl<'a> TimedGuard<'a>
impl<'a> TimedGuard<'a>
Trait Implementations§
Source§impl<'a> Drop for TimedGuard<'a>
impl<'a> Drop for TimedGuard<'a>
Auto Trait Implementations§
impl<'a> Freeze for TimedGuard<'a>
impl<'a> !RefUnwindSafe for TimedGuard<'a>
impl<'a> !Send for TimedGuard<'a>
impl<'a> !Sync for TimedGuard<'a>
impl<'a> Unpin for TimedGuard<'a>
impl<'a> UnsafeUnpin for TimedGuard<'a>
impl<'a> !UnwindSafe for TimedGuard<'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