Struct wasm_runtime_layer::Store
source · pub struct Store<T, E: WasmEngine> { /* private fields */ }
Expand description
The store represents all global state that can be manipulated by WebAssembly programs. It consists of the runtime representation of all instances of functions, tables, memories, and globals that have been allocated during the lifetime of the abstract machine.
The Store
holds the engine (that is —amongst many things— used to compile
the Wasm bytes into a valid module artifact).
Spec: https://webassembly.github.io/spec/core/exec/runtime.html#store
Implementations§
Trait Implementations§
source§impl<T, E: WasmEngine> AsContext for Store<T, E>
impl<T, E: WasmEngine> AsContext for Store<T, E>
source§impl<T, E: WasmEngine> AsContextMut for Store<T, E>
impl<T, E: WasmEngine> AsContextMut for Store<T, E>
source§fn as_context_mut(
&mut self
) -> StoreContextMut<'_, Self::UserState, Self::Engine>
fn as_context_mut( &mut self ) -> StoreContextMut<'_, Self::UserState, Self::Engine>
Returns the store context that this type provides access to.
Auto Trait Implementations§
impl<T, E> Freeze for Store<T, E>
impl<T, E> RefUnwindSafe for Store<T, E>
impl<T, E> Send for Store<T, E>
impl<T, E> Sync for Store<T, E>
impl<T, E> Unpin for Store<T, E>
impl<T, E> UnwindSafe for Store<T, E>
Blanket Implementations§
source§impl<E, C> AsContext<E> for Cwhere
C: AsContext<Engine = E>,
E: WasmEngine,
impl<E, C> AsContext<E> for Cwhere
C: AsContext<Engine = E>,
E: WasmEngine,
source§fn as_context(
&self
) -> <E as WasmEngine>::StoreContext<'_, <C as AsContext<E>>::UserState>
fn as_context( &self ) -> <E as WasmEngine>::StoreContext<'_, <C as AsContext<E>>::UserState>
Returns the store context that this type provides access to.
source§impl<E, C> AsContextMut<E> for Cwhere
C: AsContextMut<Engine = E>,
E: WasmEngine,
impl<E, C> AsContextMut<E> for Cwhere
C: AsContextMut<Engine = E>,
E: WasmEngine,
source§fn as_context_mut(
&mut self
) -> <E as WasmEngine>::StoreContextMut<'_, <C as AsContext<E>>::UserState>
fn as_context_mut( &mut self ) -> <E as WasmEngine>::StoreContextMut<'_, <C as AsContext<E>>::UserState>
Returns the store context that this type provides access to.
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more