[][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();
    "one minute: {}%, five minutes: {}%, fifteen minutes: {}%",


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

Blanket Implementations

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

impl<T> Borrow<T> for T where
    T: ?Sized

impl<T> BorrowMut<T> for T where
    T: ?Sized

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

impl<T, U> Into<U> for T where
    U: From<T>, 

impl<T> Pointable for T

type Init = T

The type for initializers.

impl<T> ToOwned for T where
    T: Clone

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

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

The type returned in the event of a conversion error.