Type Definition probe_c_api::CommandResult [] [src]

type CommandResult = Result<Output>;

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.)