[][src]Struct psutil::system::VirtualMemory

pub struct VirtualMemory {
    pub total: u64,
    pub available: u64,
    pub percent: f32,
    pub used: u64,
    pub free: u64,
    pub active: u64,
    pub inactive: u64,
    pub buffers: u64,
    pub cached: u64,
    pub shared: u64,
}

Fields

total: u64

Amount of total memory

available: u64

Amount of memory available for new processes

percent: f32

Percent of memory used

used: u64

Memory currently in use

free: u64

Memory not being used

active: u64

Memory currently in use

inactive: u64

Memory that is not in use

buffers: u64

Temporary storage for raw disk blocks

cached: u64

Memory used by the page cache

shared: u64

Amount of memory consumed by tmpfs filesystems

Methods

impl VirtualMemory[src]

pub fn new(
    total: u64,
    available: u64,
    shared: u64,
    free: u64,
    buffers: u64,
    cached: u64,
    active: u64,
    inactive: u64
) -> VirtualMemory
[src]

Trait Implementations

impl Debug for VirtualMemory[src]

Auto Trait Implementations

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]