#[repr(C)]pub struct sysinfo {Show 16 fields
pub uptime: __kernel_long_t,
pub loads: [__kernel_ulong_t; 3],
pub totalram: __kernel_ulong_t,
pub freeram: __kernel_ulong_t,
pub sharedram: __kernel_ulong_t,
pub bufferram: __kernel_ulong_t,
pub totalswap: __kernel_ulong_t,
pub freeswap: __kernel_ulong_t,
pub procs: __u16,
pub pad: __u16,
pub __bindgen_padding_0: [u8; 4],
pub totalhigh: __kernel_ulong_t,
pub freehigh: __kernel_ulong_t,
pub mem_unit: __u32,
pub _f: __IncompleteArrayField<c_char>,
pub __bindgen_padding_1: [u8; 4],
}Fields§
§uptime: __kernel_long_t§loads: [__kernel_ulong_t; 3]§totalram: __kernel_ulong_t§freeram: __kernel_ulong_t§bufferram: __kernel_ulong_t§totalswap: __kernel_ulong_t§freeswap: __kernel_ulong_t§procs: __u16§pad: __u16§__bindgen_padding_0: [u8; 4]§totalhigh: __kernel_ulong_t§freehigh: __kernel_ulong_t§mem_unit: __u32§_f: __IncompleteArrayField<c_char>§__bindgen_padding_1: [u8; 4]Trait Implementations§
Source§impl IntoBytes for sysinfowhere
__kernel_long_t: IntoBytes,
[__kernel_ulong_t; 3]: IntoBytes,
__kernel_ulong_t: IntoBytes,
__u16: IntoBytes,
[u8; 4]: IntoBytes,
__u32: IntoBytes,
__IncompleteArrayField<c_char>: IntoBytes,
(): PaddingFree<Self, { _ }>,
impl IntoBytes for sysinfowhere
__kernel_long_t: IntoBytes,
[__kernel_ulong_t; 3]: IntoBytes,
__kernel_ulong_t: IntoBytes,
__u16: IntoBytes,
[u8; 4]: IntoBytes,
__u32: IntoBytes,
__IncompleteArrayField<c_char>: IntoBytes,
(): PaddingFree<Self, { _ }>,
Source§impl KnownLayout for sysinfo
impl KnownLayout for sysinfo
Source§type PointerMetadata = <[u8; 4] as KnownLayout>::PointerMetadata
type PointerMetadata = <[u8; 4] as KnownLayout>::PointerMetadata
The type of metadata stored in a pointer to
Self. Read moreSource§fn size_for_metadata(meta: Self::PointerMetadata) -> Option<usize>
fn size_for_metadata(meta: Self::PointerMetadata) -> Option<usize>
Computes the size of an object of type
Self with the given pointer
metadata. Read moreimpl Immutable for sysinfowhere
__kernel_long_t: Immutable,
[__kernel_ulong_t; 3]: Immutable,
__kernel_ulong_t: Immutable,
__u16: Immutable,
[u8; 4]: Immutable,
__u32: Immutable,
__IncompleteArrayField<c_char>: Immutable,
Auto Trait Implementations§
impl Freeze for sysinfo
impl RefUnwindSafe for sysinfo
impl Send for sysinfo
impl Sync for sysinfo
impl Unpin for sysinfo
impl UnsafeUnpin 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