Crate wasmer_engine[][src]

Generic Engine abstraction for Wasmer Engines.

Structs

EngineId

A unique identifier for an Engine.

ExportFunction

A function export value with an extra function pointer to initialize host environments.

ExportFunctionMetadata

Extra metadata about ExportFunctions.

ExportGlobal

A global export value.

ExportMemory

A memory export value.

ExportTable

A table export value.

FRAME_INFO

This is a global cache of backtrace frame information for all active

FrameInfo

Description of a frame in a backtrace for a RuntimeError::trace.

FunctionExtent

Represents a continuous region of executable memory starting with a function entry point.

GlobalFrameInfoRegistration

An RAII structure used to unregister a module's frame information when the module is destroyed.

NamedResolverChain

A Resolver that links two resolvers together in a chain.

NullResolver

Resolver implementation that always resolves to None.

RuntimeError

A struct representing an aborted instruction execution, with a message indicating the cause.

Enums

DeserializeError

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.

ImportError

An ImportError.

InstantiationError

An error while instantiating a module.

LinkError

The WebAssembly.LinkError object indicates an error during module instantiation (besides traps from the start function).

SerializableFunctionFrameInfo

We hold the frame info in two states, mainly because we want to process it lazily to speed up execution.

SerializeError

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 the Engine implementation produce and use.

ChainableNamedResolver

A trait for chaining resolvers together.

Engine

A unimplemented Wasmer Engine.

NamedResolver

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 a Resolver.