#[repr(C)]pub struct SysInfo {}Expand description
System-info shuttle structure.
Fields§
§uptime: i64Seconds since boot.
loads: [u64; 3]1m, 5m, and 15m load averages
total_ram: u64Total usable main memory size in ’mem_unit’s
free_ram: u64Available memory size in ’mem_unit’s
Amount of shared memory in ’mem_unit’s
buffer_ram: u64Memory used by buffers in ’mem_unit’s
total_swap: u64Total swap space size
free_swap: u64Swap space still available
num_procs: u16Number of current processes
_pad: u16§total_high_mem: u64Total high memory size
free_high_mem: u64Available high memory size
mem_unit: u32Memory unit size in bytes
Trait Implementations§
impl Copy for SysInfo
impl Eq for SysInfo
impl StructuralPartialEq for SysInfo
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