[−][src]Struct unix_exec_output_catcher::ProcessOutput
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_linesandstderr_linesare correct butstdcombined_linesis only maybe in correct order- or
stdout_linesandstderr_linesareNone, butstdcombined_linesis 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
Auto Trait Implementations
impl !RefUnwindSafe for ProcessOutput[src]
impl !Send for ProcessOutput[src]
impl !Sync for ProcessOutput[src]
impl Unpin for ProcessOutput[src]
impl UnwindSafe for ProcessOutput[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,