Skip to main content

CliOutcomeLawsExt

Trait CliOutcomeLawsExt 

Source
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§

Source

fn law_cli_outcome<Output>(&self, output: Output) -> CliLawResult
where This: CliOutcomeOf<Output>, This::Error: CliFailureAlg,

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§

Source§

impl<This> CliOutcomeLawsExt<This> for This

States that a command’s outcome and its exit status agree.