[][src]Struct nix::sys::sysinfo::SysInfo

pub struct SysInfo(_);

System info structure returned by sysinfo.

Methods

impl SysInfo
[src]

pub fn load_average(&self) -> (f64, f64, f64)
[src]

Returns the load average tuple.

The returned values represent the load average over time intervals of 1, 5, and 15 minutes, respectively.

pub fn uptime(&self) -> Duration
[src]

Returns the time since system boot.

pub fn process_count(&self) -> u16
[src]

Current number of processes.

pub fn swap_total(&self) -> u64
[src]

Returns the amount of swap memory in Bytes.

pub fn swap_free(&self) -> u64
[src]

Returns the amount of unused swap memory in Bytes.

pub fn ram_total(&self) -> u64
[src]

Returns the total amount of installed RAM in Bytes.

pub fn ram_unused(&self) -> u64
[src]

Returns the amount of completely unused RAM in Bytes.

"Unused" in this context means that the RAM in neither actively used by programs, nor by the operating system as disk cache or buffer. It is "wasted" RAM since it currently serves no purpose.

Trait Implementations

impl Copy for SysInfo
[src]

impl Clone for SysInfo
[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

Auto Trait Implementations

impl Send for SysInfo

impl Sync for SysInfo

Blanket Implementations

impl<T> From for T
[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

impl<T, U> TryFrom for T where
    T: From<U>, 
[src]

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Any for T where
    T: 'static + ?Sized
[src]