Trait wasmrs_host::EngineProvider
source · pub trait EngineProvider {
fn new_context(&self, state: Arc<WasmSocket>) -> Result<SharedContext, Error>;
fn init(&mut self) -> Result<(), Error> { ... }
}Expand description
All engine providers must implement the EngineProvider trait.
Required Methods§
sourcefn new_context(&self, state: Arc<WasmSocket>) -> Result<SharedContext, Error>
fn new_context(&self, state: Arc<WasmSocket>) -> Result<SharedContext, Error>
Called to create a new SharedContext.