Struct proc_sys_parser::loadavg::ProcLoadavg
source · pub struct ProcLoadavg {
pub load_1: f64,
pub load_5: f64,
pub load_15: f64,
pub current_runnable: u64,
pub total: u64,
pub last_pid: u64,
}Expand description
Struct for holding /proc/loadavg statistics
Fields§
§load_1: f64§load_5: f64§load_15: f64§current_runnable: u64§total: u64§last_pid: u64Implementations§
source§impl ProcLoadavg
impl ProcLoadavg
pub fn new() -> ProcLoadavg
pub fn parse_proc_loadavg(proc_loadavg: &str) -> ProcLoadavg
pub fn read_proc_loadavg(proc_meminfo_file: &str) -> ProcLoadavg
Trait Implementations§
source§impl Debug for ProcLoadavg
impl Debug for ProcLoadavg
source§impl Default for ProcLoadavg
impl Default for ProcLoadavg
source§fn default() -> ProcLoadavg
fn default() -> ProcLoadavg
Returns the “default value” for a type. Read more
source§impl PartialEq for ProcLoadavg
impl PartialEq for ProcLoadavg
source§fn eq(&self, other: &ProcLoadavg) -> bool
fn eq(&self, other: &ProcLoadavg) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for ProcLoadavg
Auto Trait Implementations§
impl RefUnwindSafe for ProcLoadavg
impl Send for ProcLoadavg
impl Sync for ProcLoadavg
impl Unpin for ProcLoadavg
impl UnwindSafe for ProcLoadavg
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