Struct libc::sysinfo

source ·
#[repr(C)]
pub struct sysinfo {
Show 14 fields 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 pad: c_ushort, pub totalhigh: c_ulong, pub freehigh: c_ulong, pub mem_unit: c_uint, pub _f: [c_char; 8],
}

Fields§

§uptime: c_long§loads: [c_ulong; 3]§totalram: c_ulong§freeram: c_ulong§sharedram: c_ulong§bufferram: c_ulong§totalswap: c_ulong§freeswap: c_ulong§procs: c_ushort§pad: c_ushort§totalhigh: c_ulong§freehigh: c_ulong§mem_unit: c_uint§_f: [c_char; 8]

Trait Implementations§

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.