pub struct ProcessOutput { /* private fields */ }
Expand description
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
andstderr_lines
are correct butstdcombined_lines
is only maybe in correct order- or
stdout_lines
andstderr_lines
areNone
, butstdcombined_lines
is in correct order
Implementations§
Source§impl ProcessOutput
impl ProcessOutput
Sourcepub fn stdout_lines(&self) -> Option<&Vec<Rc<String>>>
pub fn stdout_lines(&self) -> Option<&Vec<Rc<String>>>
Getter for stdout_lines
. This is only available if OCatchStrategy::StdSeparately
was used.
Sourcepub fn stderr_lines(&self) -> Option<&Vec<Rc<String>>>
pub fn stderr_lines(&self) -> Option<&Vec<Rc<String>>>
Getter for stderr_lines
. This is only available if OCatchStrategy::StdSeparately
was used.
Sourcepub fn stdcombined_lines(&self) -> &Vec<Rc<String>>
pub fn stdcombined_lines(&self) -> &Vec<Rc<String>>
Getter for stdcombined_lines
. The correctness of the ordering depends on the used OCatchStrategy
.
Sourcepub fn strategy(&self) -> OCatchStrategy
pub fn strategy(&self) -> OCatchStrategy
Getter for the used OCatchStrategy
.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ProcessOutput
impl RefUnwindSafe for ProcessOutput
impl !Send for ProcessOutput
impl !Sync for ProcessOutput
impl Unpin for ProcessOutput
impl UnwindSafe for ProcessOutput
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more