[][src]Struct rpsutil::cpu::CpuTime

pub struct CpuTime {
    pub user: f64,
    pub system: f64,
    pub idle: f64,
    pub nice: Option<f64>,
    pub iowait: Option<f64>,
    pub irq: Option<f64>,
    pub softirq: Option<f64>,
    pub steal: Option<f64>,
    pub guest: Option<f64>,
    pub guest_nice: Option<f64>,
}

Struct to represent CPU times. All values are in seconds.

Fields

user: f64

Time spent in user mode.

Linux: also includes guest time.

system: f64

Time spent in system mode.

idle: f64

Time spent in the idle task.

nice: Option<f64>

Time spent in user mode with low priority (nice).

Linux: also includes guest_nice time.

Available: Linux

iowait: Option<f64>

Time spent waiting for I/O to complete.

Available: Linux

irq: Option<f64>

Time spent for servicing hardware interrupts.

Available: Linux

softirq: Option<f64>

Time spent for servicing software interrupts.

Available: Linux

steal: Option<f64>

Time spent by other operating systems running in a virtualized environment.

Available: Linux 2.6.11+

guest: Option<f64>

Time spent running a virtual CPU for guest operating systems under the control of the Linux kernel.

Available: Linux 2.6.24+

guest_nice: Option<f64>

Time spent running a niced guest (virtual CPU for guest operating systems under the control of the Linux kernel).

Available: Linux 3.2.0+

Trait Implementations

impl Debug for CpuTime[src]

impl Default for CpuTime[src]

Auto Trait Implementations

impl RefUnwindSafe for CpuTime

impl Send for CpuTime

impl Sync for CpuTime

impl Unpin for CpuTime

impl UnwindSafe for CpuTime

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.