[−][src]Struct checked_command::MapStdout
Maps the captured stdout with given function if the process exited successfully.
Trait Implementations
impl<O: Debug, E: Debug, F: Debug> Debug for MapStdout<O, E, F> where
F: FnMut(Vec<u8>) -> Result<O, E> + 'static,
E: From<CommandExecutionError> + 'static,
O: 'static, [src]
F: FnMut(Vec<u8>) -> Result<O, E> + 'static,
E: From<CommandExecutionError> + 'static,
O: 'static,
impl<O, E, F> ReturnSettings for MapStdout<O, E, F> where
F: FnMut(Vec<u8>) -> Result<O, E>,
E: From<CommandExecutionError>, [src]
F: FnMut(Vec<u8>) -> Result<O, E>,
E: From<CommandExecutionError>,
type Output = O
The output produced by this command, if it is run and doesn't fail.
type Error = E
The error produced by this command, if it is run and does fail.
pub fn capture_stdout(&self) -> bool[src]
pub fn capture_stderr(&self) -> bool[src]
pub fn map_output(
mut self: Box<Self>,
stdout: Option<Vec<u8>>,
_stderr: Option<Vec<u8>>,
_exit_status: ExitStatus
) -> Result<Self::Output, Self::Error>[src]
mut self: Box<Self>,
stdout: Option<Vec<u8>>,
_stderr: Option<Vec<u8>>,
_exit_status: ExitStatus
) -> Result<Self::Output, Self::Error>
Auto Trait Implementations
impl<O, E, F> RefUnwindSafe for MapStdout<O, E, F> where
F: RefUnwindSafe, [src]
F: RefUnwindSafe,
impl<O, E, F> Send for MapStdout<O, E, F> where
F: Send, [src]
F: Send,
impl<O, E, F> Sync for MapStdout<O, E, F> where
F: Sync, [src]
F: Sync,
impl<O, E, F> Unpin for MapStdout<O, E, F> where
F: Unpin, [src]
F: Unpin,
impl<O, E, F> UnwindSafe for MapStdout<O, E, F> where
F: UnwindSafe, [src]
F: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,