Type Alias CommandResult

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

Result of compilation and run commands. Currently just an alias for the standard library types used by std::process, since in most cases we only want to know:

  1. Were we able to run the command at all? (If not, we’ll have io::Result::Err(..), probably of kind NotFound or PermissionDenied.)

  2. If so, did the command exit with an error? (Check status on process::Output.)

  3. And what did the command report? (Check stdout and stderr on process::Output.)

Aliased Type§

enum CommandResult {
    Ok(Output),
    Err(Error),
}

Variants§

§1.0.0

Ok(Output)

Contains the success value

§1.0.0

Err(Error)

Contains the error value