Struct wasmrs_host::Host
source · pub struct Host { /* private fields */ }Expand description
A wasmRS native Host.
Implementations§
source§impl Host
impl Host
sourcepub fn new<T: EngineProvider + 'static>(engine: T) -> Result<Self, Error>
pub fn new<T: EngineProvider + 'static>(engine: T) -> Result<Self, Error>
Create a new Host with an EngineProvider implementation.
sourcepub fn new_context(&self) -> Result<CallContext, Error>
pub fn new_context(&self) -> Result<CallContext, Error>
Create a new CallContext, a way to bucket calls together with the same memory and configuration.