pub struct TrackingGuard<'a> { /* private fields */ }
Expand description
A guard representing an allocation group which has been entered.
When the guard is dropped, the allocation group will be exited and the previously entered allocation group will be restored.
This is returned by the AllocationGroupToken::enter
method.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for TrackingGuard<'a>
impl<'a> RefUnwindSafe for TrackingGuard<'a>
impl<'a> !Send for TrackingGuard<'a>
impl<'a> !Sync for TrackingGuard<'a>
impl<'a> Unpin for TrackingGuard<'a>
impl<'a> UnwindSafe for TrackingGuard<'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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> Track for T
impl<T> Track for T
Source§fn track_allocations(self, token: AllocationGroupToken) -> Tracked<Self> ⓘ
fn track_allocations(self, token: AllocationGroupToken) -> Tracked<Self> ⓘ
Instruments this type by attaching the given allocation group token, returning a
Tracked
wrapper. Read more