pub struct ProcMemInfo {
Show 54 fields pub memtotal: u64, pub memfree: u64, pub memavailable: u64, pub buffers: u64, pub cached: u64, pub swapcached: u64, pub active: u64, pub inactive: u64, pub active_anon: u64, pub inactive_anon: u64, pub active_file: u64, pub inactive_file: u64, pub unevictable: u64, pub mlocked: u64, pub swaptotal: u64, pub swapfree: u64, pub zswap: u64, pub zswapped: u64, pub dirty: u64, pub writeback: u64, pub anonpages: u64, pub mapped: u64, pub shmem: u64, pub kreclaimable: u64, pub slab: u64, pub sreclaimable: u64, pub sunreclaim: u64, pub kernelstack: u64, pub shadowcallstack: u64, pub pagetables: u64, pub secpagetables: u64, pub nfs_unstable: u64, pub bounce: u64, pub writebacktmp: u64, pub commitlimit: u64, pub committed_as: u64, pub vmalloctotal: u64, pub vmallocused: u64, pub vmallocchunk: u64, pub percpu: u64, pub hardwarecorrupted: u64, pub anonhugepages: u64, pub shmemhugepages: u64, pub shmempmdmapped: u64, pub filehugepages: u64, pub filepmdmapped: u64, pub cmatotal: u64, pub cmafree: u64, pub hugepages_total: u64, pub hugepages_free: u64, pub hugepages_rsvd: u64, pub hugepages_surp: u64, pub hugepagesize: u64, pub hugetlb: u64,
}
Expand description

Struct for holding /proc/meminfo statistics

Fields§

§memtotal: u64§memfree: u64§memavailable: u64§buffers: u64§cached: u64§swapcached: u64§active: u64§inactive: u64§active_anon: u64§inactive_anon: u64§active_file: u64§inactive_file: u64§unevictable: u64§mlocked: u64§swaptotal: u64§swapfree: u64§zswap: u64§zswapped: u64§dirty: u64§writeback: u64§anonpages: u64§mapped: u64§shmem: u64§kreclaimable: u64§slab: u64§sreclaimable: u64§sunreclaim: u64§kernelstack: u64§shadowcallstack: u64§pagetables: u64§secpagetables: u64§nfs_unstable: u64§bounce: u64§writebacktmp: u64§commitlimit: u64§committed_as: u64§vmalloctotal: u64§vmallocused: u64§vmallocchunk: u64§percpu: u64§hardwarecorrupted: u64§anonhugepages: u64§shmemhugepages: u64§shmempmdmapped: u64§filehugepages: u64§filepmdmapped: u64§cmatotal: u64§cmafree: u64§hugepages_total: u64§hugepages_free: u64§hugepages_rsvd: u64§hugepages_surp: u64§hugepagesize: u64§hugetlb: u64

Implementations§

Trait Implementations§

source§

impl Debug for ProcMemInfo

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for ProcMemInfo

source§

fn default() -> Self

Returns the “default value” for a type. Read more
source§

impl PartialEq for ProcMemInfo

source§

fn eq(&self, other: &ProcMemInfo) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl StructuralPartialEq for ProcMemInfo

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

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

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.