pub struct GCInfo {
pub total_objects: usize,
pub allocated_bytes: usize,
pub collections_performed: u64,
pub objects_collected: u64,
pub collection_threshold: usize,
pub auto_collect_enabled: bool,
}Expand description
General GC information
Fields§
§total_objects: usizeTotal objects currently tracked
allocated_bytes: usizeCurrently allocated bytes
collections_performed: u64Total collections performed
objects_collected: u64Total objects collected ever
collection_threshold: usizeCollection threshold in bytes
auto_collect_enabled: boolWhether auto-collection is enabled
Trait Implementations§
Auto Trait Implementations§
impl Freeze for GCInfo
impl RefUnwindSafe for GCInfo
impl Send for GCInfo
impl Sync for GCInfo
impl Unpin for GCInfo
impl UnwindSafe for GCInfo
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