[][src]Struct mapped_command::MapStdoutString

pub struct MapStdoutString<O, E, F>(pub F)
where
    F: FnMut(String) -> Result<O, E> + 'static,
    E: From<CommandExecutionWithStringOutputError> + 'static,
    O: 'static
;

Like MapStdout but converts the captured stdout to an string before mapping.

Trait Implementations

impl<O: Debug, E: Debug, F: Debug> Debug for MapStdoutString<O, E, F> where
    F: FnMut(String) -> Result<O, E> + 'static,
    E: From<CommandExecutionWithStringOutputError> + 'static,
    O: 'static, 
[src]

impl<O, E, F> OutputMapping for MapStdoutString<O, E, F> where
    F: FnMut(String) -> Result<O, E>,
    E: From<CommandExecutionWithStringOutputError>, 
[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 MapStdoutString<O, E, F> where
    F: RefUnwindSafe
[src]

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

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

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

impl<O, E, F> UnwindSafe for MapStdoutString<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.