EngineProvider

Trait EngineProvider 

Source
pub trait EngineProvider {
    // Required method
    fn new_context<'life0, 'async_trait>(
        &'life0 self,
        state: Arc<WasmSocket<HostServer>>,
    ) -> Pin<Box<dyn Future<Output = Result<SharedContext, Error>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}
Expand description

All engine providers must implement the EngineProvider trait.

Required Methods§

Source

fn new_context<'life0, 'async_trait>( &'life0 self, state: Arc<WasmSocket<HostServer>>, ) -> Pin<Box<dyn Future<Output = Result<SharedContext, Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Called to create a new SharedContext.

Implementors§