pub struct MapStdout<O, E, F>(pub F)
where
F: FnMut(Vec<u8>) -> Result<O, E> + 'static,
E: From<CommandExecutionError> + 'static,
O: 'static;
Expand description
Maps the captured stdout with given function if the process exited successfully.
Tuple Fields§
§0: F
Trait Implementations§
Source§impl<O, E, F> OutputMapping for MapStdout<O, E, F>
impl<O, E, F> OutputMapping for MapStdout<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 MapStdout<O, E, F>where
F: Freeze,
impl<O, E, F> RefUnwindSafe for MapStdout<O, E, F>where
F: RefUnwindSafe,
impl<O, E, F> Send for MapStdout<O, E, F>where
F: Send,
impl<O, E, F> Sync for MapStdout<O, E, F>where
F: Sync,
impl<O, E, F> Unpin for MapStdout<O, E, F>where
F: Unpin,
impl<O, E, F> UnwindSafe for MapStdout<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