pub struct MapStdoutAndErrStrings<O, E, F>(pub F)
where
F: FnMut(CapturedStdoutAndErrStrings) -> Result<O, E> + 'static,
E: From<CommandExecutionWithStringOutputError> + 'static,
O: 'static;
Expand description
Like MapStdoutAndErr
but converts the captured stdout and stderr to strings before mapping.
Tuple Fields§
§0: F
Trait Implementations§
Source§impl<O, E, F> Debug for MapStdoutAndErrStrings<O, E, F>where
F: FnMut(CapturedStdoutAndErrStrings) -> Result<O, E> + 'static + Debug,
E: From<CommandExecutionWithStringOutputError> + 'static + Debug,
O: 'static + Debug,
impl<O, E, F> Debug for MapStdoutAndErrStrings<O, E, F>where
F: FnMut(CapturedStdoutAndErrStrings) -> Result<O, E> + 'static + Debug,
E: From<CommandExecutionWithStringOutputError> + 'static + Debug,
O: 'static + Debug,
Source§impl<O, E, F> OutputMapping for MapStdoutAndErrStrings<O, E, F>where
F: FnMut(CapturedStdoutAndErrStrings) -> Result<O, E>,
E: From<CommandExecutionWithStringOutputError>,
impl<O, E, F> OutputMapping for MapStdoutAndErrStrings<O, E, F>where
F: FnMut(CapturedStdoutAndErrStrings) -> Result<O, E>,
E: From<CommandExecutionWithStringOutputError>,
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 MapStdoutAndErrStrings<O, E, F>where
F: Freeze,
impl<O, E, F> RefUnwindSafe for MapStdoutAndErrStrings<O, E, F>where
F: RefUnwindSafe,
impl<O, E, F> Send for MapStdoutAndErrStrings<O, E, F>where
F: Send,
impl<O, E, F> Sync for MapStdoutAndErrStrings<O, E, F>where
F: Sync,
impl<O, E, F> Unpin for MapStdoutAndErrStrings<O, E, F>where
F: Unpin,
impl<O, E, F> UnwindSafe for MapStdoutAndErrStrings<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