Skip to main content

Runner

Trait Runner 

Source
pub trait Runner {
    // Required method
    fn run(&mut self, command: &Command) -> Result<String, Box<dyn Error>>;

    // Provided methods
    fn start_script(&mut self) -> Result<(), Box<dyn Error>> { ... }
    fn end_script(&mut self) -> Result<(), Box<dyn Error>> { ... }
    fn start_block(&mut self) -> Result<String, Box<dyn Error>> { ... }
    fn end_block(&mut self) -> Result<String, Box<dyn Error>> { ... }
    fn start_command(
        &mut self,
        command: &Command,
    ) -> Result<String, Box<dyn Error>> { ... }
    fn end_command(
        &mut self,
        command: &Command,
    ) -> Result<String, Box<dyn Error>> { ... }
}

Required Methods§

Source

fn run(&mut self, command: &Command) -> Result<String, Box<dyn Error>>

Provided Methods§

Source

fn start_script(&mut self) -> Result<(), Box<dyn Error>>

Source

fn end_script(&mut self) -> Result<(), Box<dyn Error>>

Source

fn start_block(&mut self) -> Result<String, Box<dyn Error>>

Source

fn end_block(&mut self) -> Result<String, Box<dyn Error>>

Source

fn start_command(&mut self, command: &Command) -> Result<String, Box<dyn Error>>

Source

fn end_command(&mut self, command: &Command) -> Result<String, Box<dyn Error>>

Implementors§