[][src]Struct psutil::cpu::CpuTimesPercent

pub struct CpuTimesPercent { /* fields omitted */ }

Every attribute represents the percentage of time the CPU has spent in the given mode.

Methods

impl CpuTimesPercent[src]

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

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

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

Time spent by processes executing in kernel mode.

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

Time spent doing nothing.

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

New method, not in Python psutil.

Trait Implementations

impl Clone for CpuTimesPercent[src]

impl CpuTimesPercentExt for CpuTimesPercent[src]

impl CpuTimesPercentExt for CpuTimesPercent[src]

impl Debug for CpuTimesPercent[src]

impl Default for CpuTimesPercent[src]

impl From<CpuTimes> for CpuTimesPercent[src]

impl PartialEq<CpuTimesPercent> for CpuTimesPercent[src]

impl StructuralPartialEq for CpuTimesPercent[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> 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.