pub struct GcStats {
pub candidates: usize,
pub traced: usize,
pub collected: usize,
pub pruned: usize,
pub aborted: bool,
}Expand description
Result of one collection pass.
Fields§
§candidates: usizeLive registry entries scanned as trial-deletion roots.
traced: usizeNodes visited (side-map size).
collected: usizeWhite (garbage) nodes identified and severed/reclaimed.
pruned: usizeRegistry entries removed: dead Weaks, plus duplicate entries for a
live allocation (one is kept).
aborted: boolTrue if the pass stopped before severing anything (a needed RefCell
was borrowed, or a collection was already running). Nothing was
mutated; a later collect can reclaim.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for GcStats
impl RefUnwindSafe for GcStats
impl Send for GcStats
impl Sync for GcStats
impl Unpin for GcStats
impl UnsafeUnpin for GcStats
impl UnwindSafe for GcStats
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