[−][src]Struct psutil::cpu::CpuTimes
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]
fn iowait(&self) -> Duration
[src]
fn irq(&self) -> Duration
[src]
fn softirq(&self) -> Duration
[src]
fn steal(&self) -> Option<Duration>
[src]
fn guest(&self) -> Option<Duration>
[src]
fn guest_nice(&self) -> Option<Duration>
[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.
fn from_str(line: &str) -> Result<Self>
[src]
impl PartialEq<CpuTimes> for CpuTimes
[src]
impl StructuralEq for CpuTimes
[src]
impl StructuralPartialEq for CpuTimes
[src]
impl<'_> Sub<&'_ CpuTimes> for &'_ CpuTimes
[src]
Auto Trait Implementations
impl RefUnwindSafe for CpuTimes
impl Send for CpuTimes
impl Sync for CpuTimes
impl Unpin for CpuTimes
impl UnwindSafe for CpuTimes
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,