#[non_exhaustive]#[repr(C)]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_long
Seconds since boot
loads: [c_ulong; 3]
1, 5, and 15 minute load averages
totalram: c_ulong
Total usable main memory size
freeram: c_ulong
Available memory size
Amount of shared memory
bufferram: c_ulong
Memory used by buffers
totalswap: c_ulong
Total swap space size
freeswap: c_ulong
Swap space still available
procs: c_ushort
Number of current processes
totalhigh: c_ulong
Total high memory size
freehigh: c_ulong
Available high memory size
mem_unit: c_uint
Memory 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