[][src]Struct heim_cpu::CpuStats

pub struct CpuStats(_);

CPU statistics.

See OS-specific extensions for more statistics.

Implementations

impl CpuStats[src]

pub fn ctx_switches(&self) -> u64[src]

Returns number of context switches (voluntary + involuntary) since system boot.

pub fn interrupts(&self) -> u64[src]

Returns number of interrupts since system boot.

Trait Implementations

impl CpuStatsExt for CpuStats[src]

impl Debug for CpuStats[src]

Auto Trait Implementations

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> Same<T> for T

type Output = T

Should always be Self

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.