pub struct TimingGuard<'a> { /* private fields */ }
Expand description
When dropped, this TimingGuard
will record an “end” event in the
Profiler
it was created by.
Implementations§
Source§impl<'a> TimingGuard<'a>
impl<'a> TimingGuard<'a>
Sourcepub fn finish_with_override_event_id(self, event_id: EventId)
pub fn finish_with_override_event_id(self, event_id: EventId)
This method set a new event_id
right before actually recording the
event.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for TimingGuard<'a>
impl<'a> !RefUnwindSafe for TimingGuard<'a>
impl<'a> Send for TimingGuard<'a>
impl<'a> Sync for TimingGuard<'a>
impl<'a> Unpin for TimingGuard<'a>
impl<'a> !UnwindSafe for TimingGuard<'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