[][src]Struct unix_exec_piper::ProcessState

pub struct ProcessState { /* fields omitted */ }

Process state. Describes the state of the child processes created per invocation of execute_piped_cmd_chain().

Implementations

impl ProcessState[src]

pub fn new(executable: String, pid: i32) -> Self[src]

Constructor.

pub fn finish(&mut self, exit_code: i32)[src]

Updates the struct.

pub fn pid(&self) -> i32[src]

Getter for pid.

pub fn finished(&self) -> bool[src]

Getter for finished. If false process is still running.

pub fn exit_code(&self) -> i32[src]

Getter for exit_code.

pub fn executable(&self) -> &str[src]

Getter for executable.

Trait Implementations

impl Debug for ProcessState[src]

Auto Trait Implementations

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> From<T> for T[src]

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

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.