[][src]Struct mapped_command::ExecResult

pub struct ExecResult {
    pub exit_status: ExitStatus,
    pub stdout: Option<Vec<u8>>,
    pub stderr: Option<Vec<u8>>,
}

Type used for exec_replacement_callback to return mocked output and exit status.

Fields

exit_status: ExitStatus

The exit status the process did exit with.

stdout: Option<Vec<u8>>

The stdout output captured during sub-process execution (if any).

This must be Some if stdout is expected to be captured, it must be None if it's expected to not be captured.

stderr: Option<Vec<u8>>

The stderr output captured during sub-process execution (if any).

This must be Some if stderr is expected to be captured, it must be None if it's expected to not be captured.

Trait Implementations

impl Debug for ExecResult[src]

impl Default for ExecResult[src]

Auto Trait Implementations

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.