pub struct DurationScope<'a, C: CategoryString, S: AsTraceStrRef> { /* private fields */ }Expand description
The scope of a duration event, returned by the duration function and the duration! macro.
The duration will be end'ed when this object is dropped.
Implementations§
Source§impl<'a, C: CategoryString, S: AsTraceStrRef> DurationScope<'a, C, S>
impl<'a, C: CategoryString, S: AsTraceStrRef> DurationScope<'a, C, S>
Trait Implementations§
Source§impl<'a, C: CategoryString, S: AsTraceStrRef> Drop for DurationScope<'a, C, S>
impl<'a, C: CategoryString, S: AsTraceStrRef> Drop for DurationScope<'a, C, S>
Auto Trait Implementations§
impl<'a, C, S> Freeze for DurationScope<'a, C, S>
impl<'a, C, S> RefUnwindSafe for DurationScope<'a, C, S>where
C: RefUnwindSafe,
S: RefUnwindSafe,
impl<'a, C, S> Send for DurationScope<'a, C, S>
impl<'a, C, S> Sync for DurationScope<'a, C, S>
impl<'a, C, S> Unpin for DurationScope<'a, C, S>
impl<'a, C, S> UnwindSafe for DurationScope<'a, C, S>where
C: UnwindSafe,
S: 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