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

#[repr(transparent)]pub struct SysInfo(_);

System info structure returned by sysinfo.

Implementations

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

impl Copy for SysInfo[src]

impl Debug for SysInfo[src]

impl Eq for SysInfo[src]

impl Hash for SysInfo[src]

impl PartialEq<SysInfo> for SysInfo[src]

impl StructuralEq for SysInfo[src]

impl StructuralPartialEq for SysInfo[src]

Auto Trait Implementations

impl RefUnwindSafe for SysInfo

impl Send for SysInfo

impl Sync for SysInfo

impl Unpin for SysInfo

impl UnwindSafe for SysInfo

Blanket Implementations

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

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

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

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

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

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

type Owned = T

The resulting type after obtaining ownership.

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.