[][src]Struct mapped_command::MapStdoutAndErr

pub struct MapStdoutAndErr<O, E, F>(pub F)
where
    F: FnMut(CapturedStdoutAndErr) -> Result<O, E> + 'static,
    E: From<CommandExecutionError> + 'static,
    O: 'static
;

Maps the captured stdout and stderr with given function if the process exited successfully.

Trait Implementations

impl<O: Debug, E: Debug, F: Debug> Debug for MapStdoutAndErr<O, E, F> where
    F: FnMut(CapturedStdoutAndErr) -> Result<O, E> + 'static,
    E: From<CommandExecutionError> + 'static,
    O: 'static, 
[src]

impl<O, E, F> OutputMapping for MapStdoutAndErr<O, E, F> where
    F: FnMut(CapturedStdoutAndErr) -> Result<O, E>,
    E: From<CommandExecutionError>, 
[src]

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.

Auto Trait Implementations

impl<O, E, F> RefUnwindSafe for MapStdoutAndErr<O, E, F> where
    F: RefUnwindSafe
[src]

impl<O, E, F> Send for MapStdoutAndErr<O, E, F> where
    F: Send
[src]

impl<O, E, F> Sync for MapStdoutAndErr<O, E, F> where
    F: Sync
[src]

impl<O, E, F> Unpin for MapStdoutAndErr<O, E, F> where
    F: Unpin
[src]

impl<O, E, F> UnwindSafe for MapStdoutAndErr<O, E, F> where
    F: UnwindSafe
[src]

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.