Struct tabin_plugins::procfs::LoadAvg[][src]

pub struct LoadAvg {
    pub one: f64,
    pub five: f64,
    pub fifteen: f64,
}

The load average of the system

Load average is number of jobs in the run queue (state R) or waiting for disk I/O (state D) averaged over 1, 5, and 15 minutes.

Fields

one: f64five: f64fifteen: f64

Implementations

impl LoadAvg[src]

pub fn load() -> Result<LoadAvg>[src]

Load from the /proc/loadavg file

Trait Implementations

impl Debug for LoadAvg[src]

impl<'de> Deserialize<'de> for LoadAvg[src]

impl Display for LoadAvg[src]

impl Div<usize> for LoadAvg[src]

type Output = LoadAvg

The resulting type after applying the / operator.

fn div(self, rhs: usize) -> LoadAvg[src]

Divide by an integer. Useful to divide by the number of CPUs

impl FromStr for LoadAvg[src]

type Err = ProcFsError

The associated error which can be returned from parsing.

impl PartialEq<LoadAvg> for LoadAvg[src]

impl PartialOrd<LoadAvg> for LoadAvg[src]

impl StructuralPartialEq for LoadAvg[src]

Auto Trait Implementations

impl RefUnwindSafe for LoadAvg

impl Send for LoadAvg

impl Sync for LoadAvg

impl Unpin for LoadAvg

impl UnwindSafe for LoadAvg

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> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

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

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

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

impl<T> ToString for T where
    T: Display + ?Sized
[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.