Expand description
Generic Engine abstraction for Wasmer Engines.
Re-exports§
pub use frame_info::FRAME_INFO;
pub use frame_info::FRAME_INFO;
Structs§
- Engine
Id - A unique identifier for an Engine.
- Export
Function - A function export value with an extra function pointer to initialize host environments.
- Export
Function Metadata - Extra metadata about
ExportFunction
s. - FRAME_
INFO - This is a global cache of backtrace frame information for all active
- Frame
Info - Description of a frame in a backtrace for a
RuntimeError::trace
. - Function
Extent - Represents a continuous region of executable memory starting with a function entry point.
- Global
Frame Info Registration - An RAII structure used to unregister a module’s frame information when the module is destroyed.
- Metadata
Header - Metadata header which holds an ABI version and the length of the remaining metadata.
- Named
Resolver Chain - A
Resolver
that links two resolvers together in a chain. - Null
Resolver Resolver
implementation that always resolves toNone
. Equivalent to()
.- Runtime
Error - A struct representing an aborted instruction execution, with a message indicating the cause.
Enums§
- Deserialize
Error - The Deserialize error can occur when loading a compiled Module from a binary.
- Export
- The value of an export passed from one instance to another.
- Import
Error - An ImportError.
- Instantiation
Error - An error while instantiating a module.
- Link
Error - The WebAssembly.LinkError object indicates an error during module instantiation (besides traps from the start function).
- Serialize
Error - The Serialize error can occur when serializing a compiled Module into a binary.
Constants§
- VERSION
- Version number of this crate.
Traits§
- Artifact
- An
Artifact
is the product that theEngine
implementation produce and use. - Artifact
Create - An
Artifact
is the product that theEngine
implementation produce and use. - Chainable
Named Resolver - A trait for chaining resolvers together.
- Engine
- A unimplemented Wasmer
Engine
. - Named
Resolver - Import resolver connects imports with available exported values.
- Resolver
- Import resolver connects imports with available exported values.
- Tunables
- An engine delegates the creation of memories, tables, and globals to a foreign implementor of this trait.
Functions§
- register_
frame_ info - Registers a new compiled module’s frame information.
- resolve_
imports - This function allows to match all imports of a
ModuleInfo
with concrete definitions provided by aResolver
.