Crate wasmer_engine
source · [−]Expand description
Generic Engine abstraction for Wasmer Engines.
Structs
A unique identifier for an Engine.
A function export value with an extra function pointer to initialize host environments.
Extra metadata about ExportFunction
s.
This is a global cache of backtrace frame information for all active
Description of a frame in a backtrace for a RuntimeError::trace
.
Represents a continuous region of executable memory starting with a function entry point.
An RAII structure used to unregister a module’s frame information when the module is destroyed.
Metadata header which holds an ABI version and the length of the remaining metadata.
A Resolver
that links two resolvers together in a chain.
Resolver
implementation that always resolves to None
. Equivalent to ()
.
A struct representing an aborted instruction execution, with a message indicating the cause.
Enums
The Deserialize error can occur when loading a compiled Module from a binary.
The value of an export passed from one instance to another.
An ImportError.
An error while instantiating a module.
The WebAssembly.LinkError object indicates an error during module instantiation (besides traps from the start function).
The Serialize error can occur when serializing a compiled Module into a binary.
Constants
Version number of this crate.
Traits
An Artifact
is the product that the Engine
implementation produce and use.
An Artifact
is the product that the Engine
implementation produce and use.
A trait for chaining resolvers together.
A unimplemented Wasmer Engine
.
Import resolver connects imports with available exported values.
Import resolver connects imports with available exported values.
An engine delegates the creation of memories, tables, and globals to a foreign implementor of this trait.
Functions
Registers a new compiled module’s frame information.
This function allows to match all imports of a ModuleInfo
with concrete definitions provided by
a Resolver
.