pub struct MemStats {
pub total_mb: u64,
pub used_mb: u64,
pub available_mb: u64,
pub commit_used_mb: u64,
pub commit_limit_mb: u64,
pub reclaimable_mb: u64,
}Expand description
Machine-wide physical memory and commit charge.
Fields§
§total_mb: u64Installed physical memory.
used_mb: u64Physical memory in use.
available_mb: u64Physical memory available to new allocations without paging.
commit_used_mb: u64Committed virtual memory.
commit_limit_mb: u64Commit limit: physical memory plus page files.
reclaimable_mb: u64The part of used_mb the OS gives up for new allocations with no harm to the machine,
which admission does not count as load. Only macOS reports any.
Trait Implementations§
impl Copy for MemStats
Source§impl<'de> Deserialize<'de> for MemStats
impl<'de> Deserialize<'de> for MemStats
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for MemStats
impl StructuralPartialEq for MemStats
Auto Trait Implementations§
impl Forget for MemStats
impl Freeze for MemStats
impl RefUnwindSafe for MemStats
impl Send for MemStats
impl Sync for MemStats
impl Unpin for MemStats
impl UnsafeUnpin for MemStats
impl UnwindSafe for MemStats
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