RuntimeExecutor

Trait RuntimeExecutor 

Source
pub trait RuntimeExecutor: Send + Sync {
    // Required methods
    fn start(
        &self,
        plugin_path: &Path,
        config: &RuntimeConfig,
    ) -> Result<Box<dyn RuntimeProcess>>;
    fn is_available(&self) -> bool;
    fn version(&self) -> Result<String>;
    fn install_dependencies(&self, plugin_path: &Path) -> Result<()>;
}
Expand description

Runtime executor trait

Required Methods§

Source

fn start( &self, plugin_path: &Path, config: &RuntimeConfig, ) -> Result<Box<dyn RuntimeProcess>>

Start the plugin process

Source

fn is_available(&self) -> bool

Check if runtime is available

Source

fn version(&self) -> Result<String>

Get runtime version

Source

fn install_dependencies(&self, plugin_path: &Path) -> Result<()>

Install plugin dependencies

Implementors§