Trait Success

Source
pub trait Success {
    // Required methods
    fn run(
        &mut self,
        callbacks: Vec<&dyn Fn() -> Result<ExitStatus, Error>>,
    ) -> &mut Self;
    fn success(&mut self, callbacks: Vec<&dyn Fn() -> bool>) -> &mut Self;
}
Expand description

§Expectations to expect a success

Required Methods§

Source

fn run( &mut self, callbacks: Vec<&dyn Fn() -> Result<ExitStatus, Error>>, ) -> &mut Self

§Check if a command success
  • callbacks The callbacks to check
Source

fn success(&mut self, callbacks: Vec<&dyn Fn() -> bool>) -> &mut Self

§Check if a callbacks return true
  • callbacks The callbacks to check

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§