pub struct Guard<'guard> { /* private fields */ }Expand description
When a Guard is dropped, it will stop recording the
event of the inner profiler.
If profiling is disabled, the Guard struct will do nothing.
Auto Trait Implementations§
impl<'guard> Freeze for Guard<'guard>
impl<'guard> RefUnwindSafe for Guard<'guard>
impl<'guard> Send for Guard<'guard>
impl<'guard> Sync for Guard<'guard>
impl<'guard> Unpin for Guard<'guard>
impl<'guard> UnsafeUnpin for Guard<'guard>
impl<'guard> UnwindSafe for Guard<'guard>
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