pub struct MemoryStats {
pub total_bytes: u64,
pub used_bytes: u64,
pub free_bytes: u64,
pub region_count: u32,
pub slab_count: u32,
pub peak_bytes: u64,
}Expand description
Memory statistics returned by the shell backend.
Fields§
§total_bytes: u64Total physical memory in bytes.
used_bytes: u64Used memory in bytes.
free_bytes: u64Free memory in bytes.
region_count: u32Number of allocated regions.
slab_count: u32Number of slab allocations.
peak_bytes: u64Peak memory usage in bytes.
Trait Implementations§
Source§impl Clone for MemoryStats
impl Clone for MemoryStats
Source§fn clone(&self) -> MemoryStats
fn clone(&self) -> MemoryStats
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 MemoryStats
impl Debug for MemoryStats
Source§impl Default for MemoryStats
impl Default for MemoryStats
Source§fn default() -> MemoryStats
fn default() -> MemoryStats
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for MemoryStats
impl RefUnwindSafe for MemoryStats
impl Send for MemoryStats
impl Sync for MemoryStats
impl Unpin for MemoryStats
impl UnsafeUnpin for MemoryStats
impl UnwindSafe for MemoryStats
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