pub struct ThreadMonitor;
Expand description
Thread-local statistics on memory usage.
Implementations§
Trait Implementations§
Source§impl AllocMonitor for ThreadMonitor
impl AllocMonitor for ThreadMonitor
Source§fn monitor(&self, layout: Layout, action: AllocAction)
fn monitor(&self, layout: Layout, action: AllocAction)
The api to the monitor. This method is called right before and right after
allocations happen.
Auto Trait Implementations§
impl Freeze for ThreadMonitor
impl RefUnwindSafe for ThreadMonitor
impl Send for ThreadMonitor
impl Sync for ThreadMonitor
impl Unpin for ThreadMonitor
impl UnwindSafe for ThreadMonitor
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