Struct proc_sys_parser::schedstat::ProcSchedStat
source · pub struct ProcSchedStat {
pub version: u64,
pub timestamp: u64,
pub cpu: Vec<Vec<u64>>,
pub domain: Vec<Domain>,
}Expand description
Struct for holding /proc/schedstat statistics
Fields§
§version: u64§timestamp: u64§cpu: Vec<Vec<u64>>§domain: Vec<Domain>Implementations§
source§impl ProcSchedStat
impl ProcSchedStat
pub fn new() -> ProcSchedStat
pub fn parse_proc_schedstat_output(proc_schedstat: &str) -> ProcSchedStat
pub fn read_proc_schedstat(proc_schedstat_file: &str) -> ProcSchedStat
Trait Implementations§
source§impl Debug for ProcSchedStat
impl Debug for ProcSchedStat
source§impl Default for ProcSchedStat
impl Default for ProcSchedStat
source§impl PartialEq for ProcSchedStat
impl PartialEq for ProcSchedStat
source§fn eq(&self, other: &ProcSchedStat) -> bool
fn eq(&self, other: &ProcSchedStat) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for ProcSchedStat
Auto Trait Implementations§
impl RefUnwindSafe for ProcSchedStat
impl Send for ProcSchedStat
impl Sync for ProcSchedStat
impl Unpin for ProcSchedStat
impl UnwindSafe for ProcSchedStat
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