CommandResult

Type Alias CommandResult 

Source
pub type CommandResult = Result<Output, CommandError>;
Expand description

Ok(Output) when a child process successfully runs and returns exit code 0.

All other circumstances are regarded as Err(CommandError). This includes when there is an error invoking a child process, if a child process is terminated, or if the child process runs and returns a non-zero exit code.

Aliased Type§

pub enum CommandResult {
    Ok(Output),
    Err(CommandError),
}

Variants§

§1.0.0

Ok(Output)

Contains the success value

§1.0.0

Err(CommandError)

Contains the error value