[][src]Struct nc::types::sysinfo_t

#[repr(C)]
pub struct sysinfo_t {
    pub uptime: isize,
    pub loads: [usize; 3],
    pub totalram: usize,
    pub freeram: usize,
    pub sharedram: usize,
    pub bufferram: usize,
    pub totalswap: usize,
    pub freeswap: usize,
    pub procs: u16,
    pub totalhigh: usize,
    pub freehigh: usize,
    pub mem_unit: u32,
    // some fields omitted
}

Fields

uptime: isize

Seconds since boot

loads: [usize; 3]

1, 5, and 15 minute load averages

totalram: usize

Total usable main memory size

freeram: usize

Available memory size

sharedram: usize

Amount of shared memory

bufferram: usize

Memory used by buffers

totalswap: usize

Total swap space size

freeswap: usize

swap space still available

procs: u16

Number of current processes

totalhigh: usize

Total high memory size

freehigh: usize

Available high memory size

mem_unit: u32

Memory unit size in bytes

Auto Trait Implementations

impl Unpin for sysinfo_t

impl Send for sysinfo_t

impl Sync for sysinfo_t

Blanket Implementations

impl<T> From<T> for 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> Into<U> for T where
    U: From<T>, 
[src]

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> Borrow<T> for T where
    T: ?Sized
[src]

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

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