Struct nu_system::ProcessInfo

source ·
pub struct ProcessInfo {
    pub pid: i32,
    pub ppid: i32,
    pub curr_proc: ProcessTask,
    pub curr_io: Option<Io>,
    pub prev_io: Option<Io>,
    pub curr_stat: Option<Stat>,
    pub prev_stat: Option<Stat>,
    pub curr_status: Option<Status>,
    pub interval: Duration,
}

Fields

pid: i32ppid: i32curr_proc: ProcessTaskcurr_io: Option<Io>prev_io: Option<Io>curr_stat: Option<Stat>prev_stat: Option<Stat>curr_status: Option<Status>interval: Duration

Implementations

PID of process

Name of command

Full name of command, with arguments

Get the status of the process

CPU usage as a percent of total

Memory size in number of bytes

Virtual memory size in bytes

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.