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:
-
Were we able to run the command at all? (If not, we’ll have
io::Result::Err(..), probably of kindNotFoundorPermissionDenied.) -
If so, did the command exit with an error? (Check
statusonprocess::Output.) -
And what did the command report? (Check
stdoutandstderronprocess::Output.)
Aliased Type§
pub enum CommandResult {
Ok(Output),
Err(Error),
}