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

Methods

impl StatCpu
[src]

Convenience function to add up all cpu values.

Trait Implementations

impl Debug for StatCpu
[src]

Formats the value using the given formatter. Read more

impl Copy for StatCpu
[src]

impl Clone for StatCpu
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Eq for StatCpu
[src]

impl PartialEq for StatCpu
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Ord for StatCpu
[src]

This method returns an Ordering between self and other. Read more

Compares and returns the maximum of two values. Read more

Compares and returns the minimum of two values. Read more

impl PartialOrd for StatCpu
[src]

This method returns an ordering between self and other values if one exists. Read more

This method tests less than (for self and other) and is used by the < operator. Read more

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

This method tests greater than (for self and other) and is used by the > operator. Read more

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]

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more

Auto Trait Implementations

impl Send for StatCpu

impl Sync for StatCpu