Struct sysinfo::Process [] [src]

pub struct Process {
    pub name: String,
    pub cmd: String,
    pub exe: String,
    pub pid: i64,
    pub environ: Vec<String>,
    pub cwd: String,
    pub root: String,
    pub memory: u64,
    pub start_time: u64,
    pub cpu_usage: f32,
    // some fields omitted
}

Fields

name: String

name of the program

cmd: String

command line

exe: String

path to the executable

pid: i64

pid of the processus

environ: Vec<String>

environment of the processus

cwd: String

current working directory

root: String

path of the root directory

memory: u64

memory usage

start_time: u64

time of process launch

cpu_usage: f32

total cpu usage

Methods

impl Process
[src]

fn new(pid: i64, start_time: u64) -> Process

fn kill(&self, signal: Signal) -> bool

Trait Implementations

impl Clone for Process
[src]

fn clone(&self) -> Process

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)
1.0.0

Performs copy-assignment from source. Read more

impl Debug for Process
[src]

fn fmt(&self, f: &mut Formatter) -> Result

Formats the value using the given formatter.