Struct libc::sysinfo
#[repr(C)]
pub struct sysinfo {
pub uptime: i64,
pub loads: [u64; 3],
pub totalram: u64,
pub freeram: u64,
pub sharedram: u64,
pub bufferram: u64,
pub totalswap: u64,
pub freeswap: u64,
pub procs: ::c_ushort,
pub pad: ::c_ushort,
pub totalhigh: u64,
pub freehigh: u64,
pub mem_unit: ::c_uint,
pub _f: [::c_char; 0],
}
Fields
pub uptime: i64
pub loads: [u64; 3]
pub totalram: u64
pub freeram: u64
pub bufferram: u64
pub totalswap: u64
pub freeswap: u64
pub procs: ::c_ushort
pub pad: ::c_ushort
pub totalhigh: u64
pub freehigh: u64
pub mem_unit: ::c_uint
pub _f: [::c_char; 0]
Trait Implementations
impl Debug for sysinfo
fn fmt(&Self, f: &mut $crate::fmt::Formatter<'_>) -> $crate::fmt::Result
impl Hash for sysinfo
fn hash<__H: $crate::hash::Hasher>(&Self, state: &mut __H) -> ()
impl StructuralEq for sysinfo
impl StructuralPartialEq for sysinfo
Auto Trait Implementations
impl RefUnwindSafe for sysinfo
impl UnwindSafe for sysinfo
Blanket Implementations
impl<T> BorrowMut<T> for T
where
T: ?Sized,
where
T: ?Sized,
fn borrow_mut(&mut Self) -> &mut T