#[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: isizeSeconds since boot
loads: [usize; 3]1, 5, and 15 minute load averages
totalram: usizeTotal usable main memory size
freeram: usizeAvailable memory size
Amount of shared memory
bufferram: usizeMemory used by buffers
totalswap: usizeTotal swap space size
freeswap: usizeswap space still available
procs: u16Number of current processes
totalhigh: usizeTotal high memory size
freehigh: usizeAvailable high memory size
mem_unit: u32Memory unit size in bytes
Trait Implementations
impl Copy for sysinfo_t
Auto Trait Implementations
impl RefUnwindSafe for sysinfo_t
impl Send for sysinfo_t
impl Sync for sysinfo_t
impl Unpin for sysinfo_t
impl UnwindSafe for sysinfo_t
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more