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