[][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 Unpin for SysInfo

impl Sync for SysInfo

impl Send for SysInfo

impl UnwindSafe for SysInfo

impl RefUnwindSafe for SysInfo

Blanket Implementations

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

type Owned = T

The resulting type after obtaining ownership.

impl<T> From<T> for T[src]

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

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

The type returned in the event of a conversion error.

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

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

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