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

Object Safety§

This trait is not object safe.

Implementors§