pub struct PoolUsageStats {
pub reserved_current: u64,
pub reserved_high: u64,
pub used_current: u64,
pub used_high: u64,
pub active_allocations: usize,
pub peak_allocations: usize,
}Expand description
Snapshot of pool memory usage.
Fields§
§reserved_current: u64Bytes currently reserved from the device allocator.
reserved_high: u64Peak bytes reserved (since creation or last reset).
used_current: u64Bytes currently in use by outstanding allocations.
used_high: u64Peak bytes in use (since creation or last reset).
active_allocations: usizeNumber of active (not-yet-freed) allocations.
peak_allocations: usizePeak number of concurrent allocations.
Trait Implementations§
Source§impl Clone for PoolUsageStats
impl Clone for PoolUsageStats
Source§fn clone(&self) -> PoolUsageStats
fn clone(&self) -> PoolUsageStats
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PoolUsageStats
impl Debug for PoolUsageStats
Source§impl Default for PoolUsageStats
impl Default for PoolUsageStats
Source§fn default() -> PoolUsageStats
fn default() -> PoolUsageStats
Returns the “default value” for a type. Read more
Source§impl PartialEq for PoolUsageStats
impl PartialEq for PoolUsageStats
impl Copy for PoolUsageStats
impl Eq for PoolUsageStats
impl StructuralPartialEq for PoolUsageStats
Auto Trait Implementations§
impl Freeze for PoolUsageStats
impl RefUnwindSafe for PoolUsageStats
impl Send for PoolUsageStats
impl Sync for PoolUsageStats
impl Unpin for PoolUsageStats
impl UnsafeUnpin for PoolUsageStats
impl UnwindSafe for PoolUsageStats
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