Struct nu_system::ProcessInfo

source ·
pub struct ProcessInfo {
Show 15 fields pub pid: i32, pub command: String, pub ppid: i32, pub start_time: DateTime<Local>, pub cpu_info: CpuInfo, pub memory_info: MemoryInfo, pub disk_info: DiskInfo, pub user: SidName, pub groups: Vec<SidName>, pub priority: u32, pub thread: i32, pub interval: Duration, pub cmd: Vec<String>, pub environ: Vec<String>, pub cwd: PathBuf,
}

Fields

pid: i32command: Stringppid: i32start_time: DateTime<Local>cpu_info: CpuInfomemory_info: MemoryInfodisk_info: DiskInfouser: SidNamegroups: Vec<SidName>priority: u32thread: i32interval: Durationcmd: Vec<String>environ: Vec<String>cwd: PathBuf

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.