[][src]Struct sysinfo::LoadAvg

#[repr(C)]pub struct LoadAvg {
    pub one: f64,
    pub five: f64,
    pub fifteen: f64,
}

A struct representing system load average value.

It is returned by SystemExt::get_load_average.

use sysinfo::{System, SystemExt};

let s = System::new_all();
let load_avg = s.get_load_average();
println!(
    "one minute: {}%, five minutes: {}%, fifteen minutes: {}%",
    load_avg.one,
    load_avg.five,
    load_avg.fifteen,
);

Fields

one: f64

Average load within one minute.

five: f64

Average load within five minutes.

fifteen: f64

Average load within fifteen minutes.

Trait Implementations

impl Clone for LoadAvg[src]

impl Debug for LoadAvg[src]

impl Default 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> 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.