[][src]Struct unix_exec_output_catcher::ProcessOutput

pub struct ProcessOutput { /* fields omitted */ }

Holds the information from the executed process. It depends on the strategy option of crate::fork_exec_and_catch how the output is structured.

The strategy results in the following two kinds of outputs:

  • stdout_lines and stderr_lines are correct but stdcombined_lines is only maybe in correct order
  • or stdout_lines and stderr_lines are None, but stdcombined_lines is in correct order

Implementations

impl ProcessOutput[src]

pub fn stdout_lines(&self) -> Option<&Vec<Rc<String>>>[src]

Getter for stdout_lines. This is only available if OCatchStrategy::StdSeparately was used.

pub fn stderr_lines(&self) -> Option<&Vec<Rc<String>>>[src]

Getter for stderr_lines. This is only available if OCatchStrategy::StdSeparately was used.

pub fn stdcombined_lines(&self) -> &Vec<Rc<String>>[src]

Getter for stdcombined_lines. The correctness of the ordering depends on the used OCatchStrategy.

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

Getter for exit_code of the executed child process.

pub fn strategy(&self) -> OCatchStrategy[src]

Getter for the used OCatchStrategy.

Trait Implementations

impl Debug for ProcessOutput[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.