[][src]Enum checked_command::CommandExecutionError

pub enum CommandExecutionError {
    SpawningProcessFailed(Error),
    UnexpectedExitStatus {
        got: ExitStatus,
        expected: ExitStatus,
    },
}

The most basic error which can be produced by running a command.

Variants

SpawningProcessFailed(Error)

Spawning the process failed.

This can happen because of a variety of reasons, like the os preventing it or the program not being found.

UnexpectedExitStatus

The process exited with an unexpected exit status.

By default this means the exit status was not 0, but this can be changed.

Fields of UnexpectedExitStatus

got: ExitStatusexpected: ExitStatus

Trait Implementations

impl Debug for CommandExecutionError[src]

impl Display for CommandExecutionError[src]

impl Error for CommandExecutionError[src]

impl From<CommandExecutionError> for CommandExecutionWithStringOutputError[src]

impl From<Error> for CommandExecutionError[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> ToString for T where
    T: Display + ?Sized
[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.