#[non_exhaustive]pub struct Sysinfo {
pub uptime: c_long,
pub loads: [c_ulong; 3],
pub totalram: c_ulong,
pub freeram: c_ulong,
pub sharedram: c_ulong,
pub bufferram: c_ulong,
pub totalswap: c_ulong,
pub freeswap: c_ulong,
pub procs: c_ushort,
pub totalhigh: c_ulong,
pub freehigh: c_ulong,
pub mem_unit: c_uint,
/* private fields */
}Expand description
sysinfo
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.uptime: c_longSeconds since boot
loads: [c_ulong; 3]1, 5, and 15 minute load averages
totalram: c_ulongTotal usable main memory size
freeram: c_ulongAvailable memory size
Amount of shared memory
bufferram: c_ulongMemory used by buffers
totalswap: c_ulongTotal swap space size
freeswap: c_ulongSwap space still available
procs: c_ushortNumber of current processes
totalhigh: c_ulongTotal high memory size
freehigh: c_ulongAvailable high memory size
mem_unit: c_uintMemory unit size in bytes
Auto Trait Implementations§
impl Freeze for Sysinfo
impl RefUnwindSafe for Sysinfo
impl Send for Sysinfo
impl Sync for Sysinfo
impl Unpin for Sysinfo
impl UnwindSafe for Sysinfo
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more