pub struct GaugeGuard { /* private fields */ }Expand description
RAII guard that publishes a fixed byte count to a MemoryGauge
for its lifetime. Created by MemoryGauge::guard; Drop removes
the contribution again.
Trait Implementations§
Source§impl Debug for GaugeGuard
impl Debug for GaugeGuard
Source§impl Drop for GaugeGuard
impl Drop for GaugeGuard
Auto Trait Implementations§
impl Freeze for GaugeGuard
impl RefUnwindSafe for GaugeGuard
impl Send for GaugeGuard
impl Sync for GaugeGuard
impl Unpin for GaugeGuard
impl UnsafeUnpin for GaugeGuard
impl UnwindSafe for GaugeGuard
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