#[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, /* private fields */ }

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

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Returns the “default value” for a type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

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

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.