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 cpu_usage: f32,
    // some fields omitted
}

Fields

name: String cmd: String exe: String pid: i64 environ: Vec<String> cwd: String root: String memory: u64 cpu_usage: f32

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.