pub struct AllocatorStats {
pub current_bytes: usize,
pub heap_size: Option<usize>,
pub max_bytes: usize,
}Expand description
A snapshot of the global allocator’s requested-byte counters.
Fields§
§current_bytes: usizeCurrent live bytes allocated on the heap.
heap_size: Option<usize>The fixed SGX heap size, or None outside SGX.
max_bytes: usizeThe max number of live bytes ever allocated during this process’ life.
Trait Implementations§
Source§impl Clone for AllocatorStats
impl Clone for AllocatorStats
Source§fn clone(&self) -> AllocatorStats
fn clone(&self) -> AllocatorStats
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 moreimpl Copy for AllocatorStats
Source§impl Debug for AllocatorStats
impl Debug for AllocatorStats
impl Eq for AllocatorStats
Source§impl PartialEq for AllocatorStats
impl PartialEq for AllocatorStats
impl StructuralPartialEq for AllocatorStats
Auto Trait Implementations§
impl Freeze for AllocatorStats
impl RefUnwindSafe for AllocatorStats
impl Send for AllocatorStats
impl Sync for AllocatorStats
impl Unpin for AllocatorStats
impl UnsafeUnpin for AllocatorStats
impl UnwindSafe for AllocatorStats
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