[][src]Struct psutil::cpu::CpuTimes

pub struct CpuTimes { /* fields omitted */ }

Every attribute represents the seconds the CPU has spent in the given mode.

Methods

impl CpuTimes[src]

pub fn user(&self) -> Duration[src]

Time spent by normal processes executing in user mode; on Linux this also includes guest time.

pub fn system(&self) -> Duration[src]

Time spent by processes executing in kernel mode.

pub fn idle(&self) -> Duration[src]

Time spent doing nothing.

pub fn busy(&self) -> Duration[src]

New method, not in Python psutil.

pub fn total(&self) -> Duration[src]

New method, not in Python psutil.

Trait Implementations

impl Clone for CpuTimes[src]

impl CpuTimesExt for CpuTimes[src]

impl CpuTimesExt for CpuTimes[src]

impl Debug for CpuTimes[src]

impl Eq for CpuTimes[src]

impl From<CpuTimes> for CpuTimesPercent[src]

impl FromStr for CpuTimes[src]

type Err = Error

The associated error which can be returned from parsing.

impl PartialEq<CpuTimes> for CpuTimes[src]

impl StructuralEq for CpuTimes[src]

impl StructuralPartialEq for CpuTimes[src]

impl<'_> Sub<&'_ CpuTimes> for &'_ CpuTimes[src]

type Output = CpuTimes

The resulting type after applying the - operator.

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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.