Type Alias assert_cmd::output::OutputResult
source · pub type OutputResult = Result<Output, OutputError>;
Expand description
Output
represented as a Result
.
Generally produced by OutputOkExt
.
§Examples
use assert_cmd::prelude::*;
use std::process::Command;
let result = Command::new("echo")
.args(&["42"])
.ok();
assert!(result.is_ok());
Aliased Type§
enum OutputResult {
Ok(Output),
Err(OutputError),
}