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§

source

type UserState

The type of data associated with the store.

Required Methods§

source

fn as_context(&self) -> E::StoreContext<'_, Self::UserState>

Returns the store context that this type provides access to.

Implementors§

source§

impl<E, C> AsContext<E> for C
where C: AsContext<Engine = E>, E: WasmEngine,