[][src]Struct simple_process_stats::ProcessStats

pub struct ProcessStats {
    pub cpu_time_user: Duration,
    pub cpu_time_kernel: Duration,
    pub memory_usage_bytes: u64,
}

Holds the retrieved basic statistics about the running process.

Fields

cpu_time_user: Duration

How much time this process has spent executing in user mode since it was started

cpu_time_kernel: Duration

How much time this process has spent executing in kernel mode since it was started

memory_usage_bytes: u64

Size of the "resident" memory the process has allocated, in bytes.

Implementations

impl ProcessStats[src]

pub async fn get() -> Result<ProcessStats, Error>[src]

Get the statistics using the OS-specific method.

Trait Implementations

impl Clone for ProcessStats[src]

impl Copy for ProcessStats[src]

impl Debug for ProcessStats[src]

impl Eq for ProcessStats[src]

impl Hash for ProcessStats[src]

impl PartialEq<ProcessStats> for ProcessStats[src]

impl StructuralEq for ProcessStats[src]

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