#[non_exhaustive]pub struct Load {
pub one: f32,
pub five: f32,
pub fifteen: f32,
}Expand description
The load average: how many programs were running or waiting for a CPU, on average, over the last 1, 5, and 15 minutes.
Compare it with the number of CPUs, or use per_cpu:
under 1.0 per CPU there was spare capacity, over 1.0 programs were queueing.
On Linux it also counts programs waiting on disk, so high load with low CPU
usage points at storage.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.one: f32The last minute.
five: f32The last 5 minutes.
fifteen: f32The last 15 minutes.
Implementations§
Trait Implementations§
impl Copy for Load
impl StructuralPartialEq for Load
Auto Trait Implementations§
impl Forget for Load
impl Freeze for Load
impl Move for Load
impl RefUnwindSafe for Load
impl Send for Load
impl Sync for Load
impl Unpin for Load
impl UnsafeUnpin for Load
impl UnwindSafe for Load
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