pub struct CollectionArenaHandle { /* private fields */ }Expand description
Opaque handle to a per-collection jemalloc arena.
Dropping the handle releases the registry entry. The underlying arena index persists (jemalloc arenas are permanent once created).
Implementations§
Source§impl CollectionArenaHandle
impl CollectionArenaHandle
Sourcepub fn arena_index(&self) -> Option<u32>
pub fn arena_index(&self) -> Option<u32>
Returns the jemalloc arena index, if one was allocated.
Sourcepub fn resident_bytes(&self) -> Option<u64>
pub fn resident_bytes(&self) -> Option<u64>
Query the resident memory (bytes) in this arena.
Returns None when no dedicated arena exists or the query fails.
Trait Implementations§
Source§impl Clone for CollectionArenaHandle
impl Clone for CollectionArenaHandle
Source§fn clone(&self) -> CollectionArenaHandle
fn clone(&self) -> CollectionArenaHandle
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for CollectionArenaHandle
impl RefUnwindSafe for CollectionArenaHandle
impl Send for CollectionArenaHandle
impl Sync for CollectionArenaHandle
impl Unpin for CollectionArenaHandle
impl UnsafeUnpin for CollectionArenaHandle
impl UnwindSafe for CollectionArenaHandle
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