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§
Sourcefn start(
&self,
plugin_path: &Path,
config: &RuntimeConfig,
) -> Result<Box<dyn RuntimeProcess>>
fn start( &self, plugin_path: &Path, config: &RuntimeConfig, ) -> Result<Box<dyn RuntimeProcess>>
Start the plugin process
Sourcefn is_available(&self) -> bool
fn is_available(&self) -> bool
Check if runtime is available
Sourcefn install_dependencies(&self, plugin_path: &Path) -> Result<()>
fn install_dependencies(&self, plugin_path: &Path) -> Result<()>
Install plugin dependencies