Trait wasmrs_host::EngineProvider
source · pub trait EngineProvider {
// Required method
fn new_context(
&self,
state: Arc<WasmSocket>
) -> Result<SharedContext, Error>;
// Provided method
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.