Trait WasmEngine

Source
pub trait WasmEngine:
    'static
    + Clone
    + Sized {
    type ExternRef: WasmExternRef<Self>;
    type Func: WasmFunc<Self>;
    type Global: WasmGlobal<Self>;
    type Instance: WasmInstance<Self>;
    type Memory: WasmMemory<Self>;
    type Module: WasmModule<Self>;
    type Store<T>: WasmStore<T, Self>;
    type StoreContext<'a, T: 'a>: WasmStoreContext<'a, T, Self>;
    type StoreContextMut<'a, T: 'a>: WasmStoreContextMut<'a, T, Self>;
    type Table: WasmTable<Self>;
}
Expand description

Provides a backing implementation for a WebAssembly runtime.

Required Associated Types§

Source

type ExternRef: WasmExternRef<Self>

The external reference type.

Source

type Func: WasmFunc<Self>

The function type.

Source

type Global: WasmGlobal<Self>

The global type.

Source

type Instance: WasmInstance<Self>

The instance type.

Source

type Memory: WasmMemory<Self>

The memory type.

Source

type Module: WasmModule<Self>

The module type.

Source

type Store<T>: WasmStore<T, Self>

The store type.

Source

type StoreContext<'a, T: 'a>: WasmStoreContext<'a, T, Self>

The store context type.

Source

type StoreContextMut<'a, T: 'a>: WasmStoreContextMut<'a, T, Self>

The mutable store context type.

Source

type Table: WasmTable<Self>

The table type.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§