Struct tabin_plugins::procfs::pid::Stat[][src]

pub struct Stat {
    pub pid: Pid,
    pub comm: String,
    pub state: State,
    pub ppid: Pid,
    pub pgrp: i32,
    pub session: i32,
    pub tty_nr: i32,
    pub tpgid: i32,
    pub flags: u32,
    pub minflt: u64,
    pub cminflt: u64,
    pub majflt: u64,
    pub cmajflt: u64,
    pub utime: Jiffies,
    pub stime: Jiffies,
    pub cutime: Jiffies,
    pub cstime: Jiffies,
    pub priority: i64,
    pub nice: i64,
    pub num_threads: i64,
    pub starttime: u64,
    pub vsize: u64,
    pub rss: u64,
}

The status of a Process

This represents much of the information in /proc/[pid]/stat, and is commonly access via a Process

Fields

pid: Pid

The process ID

comm: String

The filename of the executable

state: State

The state of the process

ppid: Pidpgrp: i32session: i32tty_nr: i32tpgid: i32flags: u32minflt: u64cminflt: u64majflt: u64cmajflt: u64utime: Jiffiesstime: Jiffiescutime: Jiffiescstime: Jiffiespriority: i64nice: i64num_threads: i64starttime: u64vsize: u64rss: u64

Implementations

impl Stat[src]

pub fn from_pid<P: Display>(pid: P) -> Result<Stat>[src]

Trait Implementations

impl Clone for Stat[src]

impl Debug for Stat[src]

impl Default for Stat[src]

impl Eq for Stat[src]

impl FromStr for Stat[src]

type Err = ProcFsError

The associated error which can be returned from parsing.

fn from_str(s: &str) -> Result<Stat>[src]

Parse the results of /proc/[pid]/stat into a Stat

impl PartialEq<Stat> for Stat[src]

impl StructuralEq for Stat[src]

impl StructuralPartialEq for Stat[src]

Auto Trait Implementations

impl RefUnwindSafe for Stat

impl Send for Stat

impl Sync for Stat

impl Unpin for Stat

impl UnwindSafe for Stat

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.