Struct linux_proc::stat::StatCpu [−][src]
pub struct StatCpu { pub user: u64, pub nice: u64, pub system: u64, pub idle: u64, pub iowait: u64, pub irq: u64, pub softirq: u64, pub steal: Option<u64>, pub guest: Option<u64>, pub guest_nice: Option<u64>, }
Info about the number of units in the various cpu contexts.
units could be anything, for example cpu cycles, or hundredths of a second. The numbers only really make sense as a proportion of the total.
Fields
user: u64
nice: u64
system: u64
idle: u64
iowait: u64
irq: u64
softirq: u64
steal: Option<u64>
guest: Option<u64>
guest_nice: Option<u64>
Methods
impl StatCpu
[src]
impl StatCpu
Trait Implementations
impl Debug for StatCpu
[src]
impl Debug for StatCpu
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Copy for StatCpu
[src]
impl Copy for StatCpu
impl Clone for StatCpu
[src]
impl Clone for StatCpu
fn clone(&self) -> StatCpu
[src]
fn clone(&self) -> StatCpu
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl Eq for StatCpu
[src]
impl Eq for StatCpu
impl PartialEq for StatCpu
[src]
impl PartialEq for StatCpu
fn eq(&self, other: &StatCpu) -> bool
[src]
fn eq(&self, other: &StatCpu) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &StatCpu) -> bool
[src]
fn ne(&self, other: &StatCpu) -> bool
This method tests for !=
.
impl Ord for StatCpu
[src]
impl Ord for StatCpu
fn cmp(&self, other: &StatCpu) -> Ordering
[src]
fn cmp(&self, other: &StatCpu) -> Ordering
This method returns an Ordering
between self
and other
. Read more
fn max(self, other: Self) -> Self
1.21.0[src]
fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self
1.21.0[src]
fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
impl PartialOrd for StatCpu
[src]
impl PartialOrd for StatCpu
fn partial_cmp(&self, other: &StatCpu) -> Option<Ordering>
[src]
fn partial_cmp(&self, other: &StatCpu) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, other: &StatCpu) -> bool
[src]
fn lt(&self, other: &StatCpu) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, other: &StatCpu) -> bool
[src]
fn le(&self, other: &StatCpu) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
fn gt(&self, other: &StatCpu) -> bool
[src]
fn gt(&self, other: &StatCpu) -> bool
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, other: &StatCpu) -> bool
[src]
fn ge(&self, other: &StatCpu) -> bool
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more
impl Hash for StatCpu
[src]
impl Hash for StatCpu