Enum tabin_plugins::procfs::pid::State[][src]

pub enum State {
    Running,
    Sleeping,
    UninterruptibleSleep,
    Waiting,
    Stopped,
    Zombie,
    Dead,
    Parked,
    NoLoad,
    Idle,
}

The state of the process

See man 5 proc for details

Variants

Running

R: Currently using the CPU

Sleeping

S: Sleeping on an interruptible wait

UninterruptibleSleep

D: Sleeping on an uninterruptible or disk sleep

Waiting

W: Paging

Stopped

T: Traced or Stopped on a signal

Zombie

Z: No parent process has reaped this

Dead

X: Dead

Parked

P: Parked

NoLoad

N: NoLoad, a process that does not contribute to the load average

Idle

I: Idle, an uninterruptable task which does not contribute to load

Combination of D and N

https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=80ed87c8a9ca0cad7ca66cf3bbdfb17559a66dcf

Trait Implementations

impl Clone for State[src]

impl Debug for State[src]

impl<'de> Deserialize<'de> for State[src]

impl Eq for State[src]

impl FromStr for State[src]

type Err = ProcFsError

The associated error which can be returned from parsing.

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

Parse from either /proc//stat or the command line

StructOpt and scan_fmt use the same trait, so we need to handle both here.

impl PartialEq<State> for State[src]

impl StructuralEq for State[src]

impl StructuralPartialEq for State[src]

Auto Trait Implementations

impl RefUnwindSafe for State

impl Send for State

impl Sync for State

impl Unpin for State

impl UnwindSafe for State

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<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[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.