pub struct ProcessStat {
Show 23 fields pub state: ProcessState, pub comm: String, pub ppid: u32, pub pgrp: u32, pub session: u32, pub tty_nr_major: u8, pub tty_nr_minor: u32, pub tpgid: Option<u32>, pub utime: u32, pub stime: u32, pub cutime: u32, pub cstime: u32, pub priority: i8, pub nice: i8, pub num_threads: usize, pub starttime: u64, pub vsize: usize, pub rss: usize, pub rsslim: usize, pub processor: usize, pub rt_priority: u8, pub shared: usize, pub rss_anon: usize,
}

Fields

state: ProcessStatecomm: Stringppid: u32pgrp: u32session: u32tty_nr_major: u8tty_nr_minor: u32tpgid: Option<u32>utime: u32stime: u32cutime: u32cstime: u32priority: i8nice: i8num_threads: usizestarttime: u64vsize: usize

size, VmSize (total program size)

rss: usize

resident, VmRSS (resident set size)

rsslim: usizeprocessor: usizert_priority: u8shared: usize

RssFile + RssShmem (resident shared size)

rss_anon: usize

VmRSS - RssFile - RssShmem = RssAnon (resident anonymous memory, process occupied memory)

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Converts to this type from the input type.

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.

Should always be Self

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

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.