wasmer_wasix::runners

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

Source§

impl Runner for DcgiRunner

Available on crate feature webc_runner_rt_dcgi only.
Source§

impl Runner for DProxyRunner

Available on crate feature webc_runner_rt_dproxy only.
Source§

impl Runner for WasiRunner

Source§

impl Runner for WcgiRunner

Available on crate feature webc_runner_rt_wcgi only.