pub trait ModuleRuntimeBackend: Send + Sync {
// Required methods
fn spawn_instance<'life0, 'life1, 'async_trait>(
&'life0 self,
cfg: &'life1 OopModuleConfig,
) -> Pin<Box<dyn Future<Output = Result<InstanceHandle>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn stop_instance<'life0, 'life1, 'async_trait>(
&'life0 self,
handle: &'life1 InstanceHandle,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn list_instances<'life0, 'life1, 'async_trait>(
&'life0 self,
module: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Vec<InstanceHandle>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
}Expand description
Trait for backends that can spawn and manage module instances