pub struct AtomicReporter { /* private fields */ }Expand description
A NonCacheReporter backed by a shared atomic gauge.
The budget registers the AtomicReporter; the producing subsystem
holds a MemoryGauge clone (via AtomicReporter::gauge) and
updates it as its footprint changes. Construct one per subsystem
instance (e.g. a parser or reasoner), register it, and thread
the gauge into the subsystem.
Implementations§
Trait Implementations§
Source§impl NonCacheReporter for AtomicReporter
impl NonCacheReporter for AtomicReporter
Auto Trait Implementations§
impl Forget for AtomicReporter
impl Freeze for AtomicReporter
impl Move for AtomicReporter
impl RefUnwindSafe for AtomicReporter
impl Send for AtomicReporter
impl Sync for AtomicReporter
impl Unpin for AtomicReporter
impl UnsafeUnpin for AtomicReporter
impl UnwindSafe for AtomicReporter
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