pub trait MemoryExt {
// Required methods
fn used(&self) -> Information;
fn buffers(&self) -> Information;
fn cached(&self) -> Information;
fn shared(&self) -> Information;
fn active(&self) -> Information;
fn inactive(&self) -> Information;
}
Expand description
Linux-specific extension to Memory
Required Methods§
Sourcefn used(&self) -> Information
fn used(&self) -> Information
The amount of physical RAM used.
It is designed for informational purposes only and might vary vastly from platform to platform.
Sourcefn buffers(&self) -> Information
fn buffers(&self) -> Information
The amount of physical RAM used for file buffers.
Sourcefn cached(&self) -> Information
fn cached(&self) -> Information
The amount of physical RAM used as cache memory.
The amount of memory that may be simultaneously accessed by multiple processes.
Sourcefn active(&self) -> Information
fn active(&self) -> Information
The total amount of buffer or page cache memory, that is in active use.
This is memory that has been recently used and is usually not reclaimed for other purposes.
Sourcefn inactive(&self) -> Information
fn inactive(&self) -> Information
The total amount of buffer or page cache memory, that are free and available.
This is memory that has not been recently used and can be reclaimed for other purposes.