Docs.rs
  • wasmer-engine-2.3.0
    • wasmer-engine 2.3.0
    • Permalink
    • Docs.rs crate page
    • MIT OR Apache-2.0 WITH LLVM-exception
    • Links
    • Repository
    • crates.io
    • Source
    • Owners
    • MarkMcCaskey
    • github:wasmerio:wasmer-core
    • Dependencies
      • backtrace ^0.3 normal
      • enumset ^1.0 normal
      • lazy_static ^1.4 normal
      • loupe ^0.1 normal
      • memmap2 ^0.5 normal
      • more-asserts ^0.2 normal
      • rustc-demangle ^0.1 normal
      • serde ^1.0 normal
      • serde_bytes ^0.11 normal
      • target-lexicon ^0.12.2 normal
      • thiserror ^1.0 normal
      • wasmer-artifact =2.3.0 normal
      • wasmer-compiler =2.3.0 normal
      • wasmer-types =2.3.0 normal
      • wasmer-vm =2.3.0 normal
    • Versions
    • 100% of the crate is documented
  • Platform
    • i686-unknown-linux-gnu
    • x86_64-apple-darwin
    • x86_64-pc-windows-msvc
    • x86_64-unknown-linux-gnu
  • Feature flags
  • docs.rs
    • About docs.rs
    • Privacy policy
  • Rust
    • Rust website
    • The Book
    • Standard Library API Reference
    • Rust by Example
    • The Cargo Guide
    • Clippy Documentation

Crate wasmer_engine

wasmer_engine2.3.0

  • All Items

Crate Items

  • Re-exports
  • Structs
  • Enums
  • Constants
  • Traits
  • Functions

Crates

  • wasmer_engine

Crate wasmer_engine

Source
Expand description

Generic Engine abstraction for Wasmer Engines.

Re-exports§

pub use frame_info::FRAME_INFO;

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.
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.
MetadataHeader
Metadata header which holds an ABI version and the length of the remaining metadata.
NamedResolverChain
A Resolver that links two resolvers together in a chain.
NullResolver
Resolver implementation that always resolves to None. Equivalent to ().
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).
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.
ArtifactCreate
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.

Results

Settings
Help
    trait
    wasmer_engine::Artifact
    An Artifact is the product that the Engine implementation …
    trait
    wasmer_engine::ArtifactCreate
    An Artifact is the product that the Engine implementation …
    trait method
    wasmer_engine::Artifact::register_frame_info
    &Artifact -> ()
    Register thie Artifact stack frame information into the …
    trait method
    wasmer_engine::Artifact::func_data_registry
    &Artifact -> &FuncDataRegistry
    Get the func data registry
    method
    wasmer_engine::Artifact::downcast_ref
    &Artifact -> Option<&T>
    Try to downcast the artifact into a given type.
    method
    wasmer_engine::Artifact::preinstantiate
    &Artifact -> Result<(), InstantiationError>
    Do preinstantiation logic that is executed before …
    trait method
    wasmer_engine::Artifact::signatures
    &Artifact -> &BoxedSlice<SignatureIndex, VMSharedSignatureIndex>
    Returns the associated VM signatures for this Artifact.
    trait method
    wasmer_engine::Artifact::finished_functions
    &Artifact -> &BoxedSlice<LocalFunctionIndex, FunctionBodyPtr>
    Returns the functions allocated in memory or this Artifact …
    trait method
    wasmer_engine::Artifact::finished_function_call_trampolines
    &Artifact -> &BoxedSlice<SignatureIndex, VMTrampoline>
    Returns the function call trampolines allocated in memory …
    trait method
    wasmer_engine::Artifact::finished_dynamic_function_trampolines
    &Artifact -> &BoxedSlice<FunctionIndex, FunctionBodyPtr>
    Returns the dynamic function trampolines allocated in …
    method
    wasmer_engine::Artifact::downcast_mut
    &mut Artifact -> Option<&mut T>
    Try to downcast the artifact into a given type mutably.
    method
    wasmer_engine::Artifact::finish_instantiation
    &Artifact, &TrapHandler, &InstanceHandle -> Result<(), InstantiationError>
    Finishes the instantiation of a just created InstanceHandle…
    method
    wasmer_engine::Artifact::instantiate
    &Artifact, &Tunables, &Resolver, Box<Any> -> Result<InstanceHandle, InstantiationError>
    Crate an Instance from this Artifact.
    method
    wasmer_engine::Engine::deserialize_from_file
    &Engine, &Path -> Result<Arc<Artifact>, DeserializeError>
    Deserializes a WebAssembly module from a path
    trait method
    wasmer_engine::Engine::deserialize
    &Engine, &[u8] -> Result<Arc<Artifact>, DeserializeError>
    Deserializes a WebAssembly module
    trait method
    wasmer_engine::Engine::compile
    &Engine, &[u8], &Tunables -> Result<Arc<Artifact>, CompileError>
    Compile a WebAssembly binary