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