[][src]Struct os_stat::CPU

pub struct CPU {
    pub user: u64,
    pub nice: u64,
    pub system: u64,
    pub idle: u64,
    pub iowait: u64,
    pub irq: u64,
    pub softirq: u64,
    pub steal: u64,
    pub guest: u64,
    pub guest_nice: u64,
    pub total: u64,
    pub cpu_count: i64,
    pub stat_count: i64,
}

Fields

user: u64nice: u64system: u64idle: u64iowait: u64irq: u64softirq: u64steal: u64guest: u64guest_nice: u64total: u64cpu_count: i64stat_count: i64

Implementations

impl CPU[src]

pub fn get() -> Result<Self>[src]

Trait Implementations

impl Debug for CPU[src]

impl Default for CPU[src]

impl PartialEq<CPU> for CPU[src]

impl StructuralPartialEq for CPU[src]

Auto Trait Implementations

impl RefUnwindSafe for CPU

impl Send for CPU

impl Sync for CPU

impl Unpin for CPU

impl UnwindSafe for CPU

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.