[][src]Struct linux_stats::MemInfo

pub struct MemInfo {
    pub mem_total: u64,
    pub mem_free: u64,
    pub mem_available: u64,
    pub bufers: u64,
    pub cached: u64,
    pub swap_cached: 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 swap_total: u64,
    pub swap_free: u64,
    pub dirty: u64,
    pub writeback: u64,
    pub anon_pages: u64,
    pub mapped: u64,
    pub shmem: u64,
    pub slab: u64,
    pub s_reclaimable: u64,
    pub s_unreclaim: u64,
    pub kernel_stack: u64,
    pub page_tables: u64,
    pub nfs_unstable: u64,
    pub bounce: u64,
    pub writeback_tmp: u64,
    pub commit_limit: u64,
    pub committed_as: u64,
    pub vmalloc_total: u64,
    pub vmalloc_used: u64,
    pub vmalloc_chunk: u64,
    pub hardware_corrupted: u64,
    pub anon_huge_pages: u64,
    pub cma_total: u64,
    pub cma_free: u64,
    pub huge_pages_total: u64,
    pub huge_pages_free: u64,
    pub huge_pages_rsvd: u64,
    pub huge_pages_surp: u64,
    pub hugepagesize: u64,
    pub direct_map_4k: u64,
    pub direct_map_2m: u64,
}

Represents the output of cat /proc/meminfo

Fields

mem_total: u64mem_free: u64mem_available: u64bufers: u64cached: u64swap_cached: u64active: u64inactive: u64active_anon: u64inactive_anon: u64active_file: u64inactive_file: u64unevictable: u64mlocked: u64swap_total: u64swap_free: u64dirty: u64writeback: u64anon_pages: u64mapped: u64shmem: u64slab: u64s_reclaimable: u64s_unreclaim: u64kernel_stack: u64page_tables: u64nfs_unstable: u64bounce: u64writeback_tmp: u64commit_limit: u64committed_as: u64vmalloc_total: u64vmalloc_used: u64vmalloc_chunk: u64hardware_corrupted: u64anon_huge_pages: u64cma_total: u64cma_free: u64huge_pages_total: u64huge_pages_free: u64huge_pages_rsvd: u64huge_pages_surp: u64hugepagesize: u64direct_map_4k: u64direct_map_2m: u64

Trait Implementations

impl Clone for MemInfo[src]

impl Debug for MemInfo[src]

impl Decodable for MemInfo[src]

impl Default for MemInfo[src]

impl Encodable for MemInfo[src]

impl FromStr for MemInfo[src]

type Err = Infallible

The associated error which can be returned from parsing.

impl PartialEq<MemInfo> for MemInfo[src]

impl StructuralPartialEq for MemInfo[src]

Auto Trait Implementations

impl RefUnwindSafe for MemInfo

impl Send for MemInfo

impl Sync for MemInfo

impl Unpin for MemInfo

impl UnwindSafe for MemInfo

Blanket Implementations

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

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

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

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

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.