[][src]Trait heim_memory::os::linux::MemoryExt

pub trait MemoryExt {
    pub fn used(&self) -> Information;
pub fn buffers(&self) -> Information;
pub fn cached(&self) -> Information;
pub fn shared(&self) -> Information;
pub fn active(&self) -> Information;
pub fn inactive(&self) -> Information; }
This is supported on Linux only.

Linux-specific extension to Memory

Required methods

pub fn used(&self) -> Information[src]

The amount of physical RAM used.

It is designed for informational purposes only and might vary vastly from platform to platform.

pub fn buffers(&self) -> Information[src]

The amount of physical RAM used for file buffers.

pub fn cached(&self) -> Information[src]

The amount of physical RAM used as cache memory.

pub fn shared(&self) -> Information[src]

The amount of memory that may be simultaneously accessed by multiple processes.

pub fn active(&self) -> Information[src]

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.

pub fn inactive(&self) -> Information[src]

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.

Loading content...

Implementors

impl MemoryExt for Memory[src]

Loading content...