pub struct MapStdoutAndErr<O, E, F>(pub F)
where
F: FnMut(CapturedStdoutAndErr) -> Result<O, E> + 'static,
E: From<CommandExecutionError> + 'static,
O: 'static;
Expand description
Maps the captured stdout and stderr with given function if the process exited successfully.
Tuple Fields§
§0: F
Trait Implementations§
Source§impl<O, E, F> Debug for MapStdoutAndErr<O, E, F>where
F: FnMut(CapturedStdoutAndErr) -> Result<O, E> + 'static + Debug,
E: From<CommandExecutionError> + 'static + Debug,
O: 'static + Debug,
impl<O, E, F> Debug for MapStdoutAndErr<O, E, F>where
F: FnMut(CapturedStdoutAndErr) -> Result<O, E> + 'static + Debug,
E: From<CommandExecutionError> + 'static + Debug,
O: 'static + Debug,
Source§impl<O, E, F> OutputMapping for MapStdoutAndErr<O, E, F>
impl<O, E, F> OutputMapping for MapStdoutAndErr<O, E, F>
Source§fn capture_stdout(&self) -> bool
fn capture_stdout(&self) -> bool
Return if stdout needs to be captured for this output mapping
map_output
function. Read moreSource§fn capture_stderr(&self) -> bool
fn capture_stderr(&self) -> bool
Return if stderr needs to be captured for this output mapping
map_output
function. Read moreAuto Trait Implementations§
impl<O, E, F> Freeze for MapStdoutAndErr<O, E, F>where
F: Freeze,
impl<O, E, F> RefUnwindSafe for MapStdoutAndErr<O, E, F>where
F: RefUnwindSafe,
impl<O, E, F> Send for MapStdoutAndErr<O, E, F>where
F: Send,
impl<O, E, F> Sync for MapStdoutAndErr<O, E, F>where
F: Sync,
impl<O, E, F> Unpin for MapStdoutAndErr<O, E, F>where
F: Unpin,
impl<O, E, F> UnwindSafe for MapStdoutAndErr<O, E, F>where
F: UnwindSafe,
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