#[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 Freeze for LoadAvg
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)