pub(crate) struct ThreadCountersShared {
pub(crate) rx: Receiver<Arc<ThreadCounter>>,
pub(crate) counters: Vec<Arc<ThreadCounter>>,
pub(crate) dead_alloc: usize,
pub(crate) dead_dealloc: usize,
pub(crate) all_time: AllTimeAllocStats,
}
Fields
rx: Receiver<Arc<ThreadCounter>>
counters: Vec<Arc<ThreadCounter>>
dead_alloc: usize
dead_dealloc: usize
all_time: AllTimeAllocStats
Implementations
pub(crate) fn count(&mut self) -> AllocStats
Trait Implementations
Auto Trait Implementations
Blanket Implementations
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more