pub trait CliOutcomeLawsExt<This> {
// Required method
fn law_cli_outcome<Output>(&self, output: Output) -> CliLawResult
where This: CliOutcomeOf<Output>,
This::Error: CliFailureAlg;
}Expand description
States that a command’s outcome and its exit status agree.
Required Methods§
Sourcefn law_cli_outcome<Output>(&self, output: Output) -> CliLawResult
fn law_cli_outcome<Output>(&self, output: Output) -> CliLawResult
Checks that output read under this mode exits with zero exactly when it succeeds.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".
Implementors§
impl<This> CliOutcomeLawsExt<This> for This
States that a command’s outcome and its exit status agree.