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),
}