Trait wasm_runtime_layer::AsContext
source · pub trait AsContext {
type Engine: WasmEngine;
type UserState;
// Required method
fn as_context(&self) -> StoreContext<'_, Self::UserState, Self::Engine>;
}
Expand description
A trait used to get shared access to a Store
.
Required Associated Types§
sourcetype Engine: WasmEngine
type Engine: WasmEngine
The engine type associated with the context.
Required Methods§
sourcefn as_context(&self) -> StoreContext<'_, Self::UserState, Self::Engine>
fn as_context(&self) -> StoreContext<'_, Self::UserState, Self::Engine>
Returns the store context that this type provides access to.