pub struct JsWasmBackend {}
Trait Implementations§
Source§impl Clone for JsWasmBackend
impl Clone for JsWasmBackend
Source§fn clone(&self) -> JsWasmBackend
fn clone(&self) -> JsWasmBackend
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Default for JsWasmBackend
impl Default for JsWasmBackend
Source§fn default() -> JsWasmBackend
fn default() -> JsWasmBackend
Returns the “default value” for a type. Read more
Source§impl WasmBackend for JsWasmBackend
impl WasmBackend for JsWasmBackend
Source§type Store = JsStore
type Store = JsStore
A type that stores all the data, while most of the types are handles to data from
Store
.Source§type Imports = JsImports
type Imports = JsImports
An object that holds all the functions that are given to
Module
as imports.Source§type ContextMut<'c> = JsContextMut<'c>
type ContextMut<'c> = JsContextMut<'c>
A temporary mutable handle to
Store
Source§type ImportCallContext<'c> = JsImportCallContext
type ImportCallContext<'c> = JsImportCallContext
A type that is used to pass context to imports.
Source§type HostFunction = HostImportFunction
type HostFunction = HostImportFunction
A host function prepared to be used as import for instantiating a module, contained in
Store
.Source§type ExportFunction = WasmExportFunction
type ExportFunction = WasmExportFunction
An export function from a wasm instance, contained in
Store
Source§type MemoryView = JsMemory
type MemoryView = JsMemory
A view to the wasm memory.
Source§fn new_async() -> WasmBackendResult<Self>
fn new_async() -> WasmBackendResult<Self>
Creates a new wasm backend with default configuration. In future, a configuration
may be passed as argument. The only option at the moment is an asynchronous backend.
Auto Trait Implementations§
impl Freeze for JsWasmBackend
impl RefUnwindSafe for JsWasmBackend
impl Send for JsWasmBackend
impl Sync for JsWasmBackend
impl Unpin for JsWasmBackend
impl UnwindSafe for JsWasmBackend
Blanket Implementations§
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