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 kindNotFound
orPermissionDenied
.) -
If so, did the command exit with an error? (Check
status
onprocess::Output
.) -
And what did the command report? (Check
stdout
andstderr
onprocess::Output
.)
Aliased Type§
enum CommandResult {
Ok(Output),
Err(Error),
}