class Wasmer::Instance
- Wasmer::Instance
- Reference
- Object
Overview
A WebAssembly Instance
is a stateful, executable instance of a
WebAssembly [Module
].
Instance objects contain all the exported WebAssembly functions, memories, tables and globals that allow interacting with WebAssembly.
Specification: https://webassembly.github.io/spec/core/exec/runtime.html#module-instances
Defined in:
wasmer/instance.crConstructors
-
.new(mod : Module, imports : ImportObject)
Instantiates a new
Instance
It takes two arguments, theModule
and anImportObject
Note: Instantiating a module may raiseTrapException
if the module's start function traps. - .new(mod : Module)
Macro Summary
Instance Method Summary
Constructor Detail
Instantiates a new Instance
It takes two arguments, the Module
and an ImportObject
Note: Instantiating a module may raise TrapException
if the module's start function traps.