Trait wasmer_wasix::runners::runner::Runner

source ·
pub trait Runner {
    // Required methods
    fn can_run_command(command: &Command) -> Result<bool, Error>
       where Self: Sized;
    fn run_command(
        &mut self,
        command_name: &str,
        pkg: &BinaryPackage,
        runtime: Arc<dyn Runtime + Send + Sync>,
    ) -> Result<(), Error>;
}
Expand description

Trait that all runners have to implement

Required Methods§

source

fn can_run_command(command: &Command) -> Result<bool, Error>
where Self: Sized,

Returns whether the Runner will be able to run the Command

source

fn run_command( &mut self, command_name: &str, pkg: &BinaryPackage, runtime: Arc<dyn Runtime + Send + Sync>, ) -> Result<(), Error>

Run a command.

Implementors§