#[repr(C)]pub struct LoadAvg {
pub one: f64,
pub five: f64,
pub fifteen: f64,
}
Expand description
A struct representing system load average value.
It is returned by SystemExt::load_average
.
use sysinfo::{System, SystemExt};
let s = System::new_all();
let load_avg = s.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§
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§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more