Module runtime

Module runtime 

Source

Re-exports§

pub use self::task_manager::SpawnType;
pub use self::task_manager::VirtualTaskManager;

Modules§

module_cache
Cache pre-compiled wasmer::Modules.
package_loader
resolver
task_manager

Structs§

DefaultTty
ImportsOnlyHook 🔒
Adapts an import-creation closure to InstantiationHook.
InstanceSetupHook 🔒
Adapts an instance-setup closure to InstantiationHook.
InstantiationState
Opaque per-instantiation state, created by InstantiationHook::additional_imports and handed back to InstantiationHook::configure_new_instance for the instance built with those imports.
OverriddenInstantiationState 🔒
Composite state used by OverriddenRuntime to carry the inner runtime’s state alongside its own hooks’ states.
OverriddenRuntime
Runtime that allows for certain things to be overridden such as the active journals
PluggableRuntime

Enums§

ModuleInput
The input to load a module.
TaintReason

Traits§

InstantiationHook
A hook into the instantiation of WASIX module instances.
Runtime
Runtime components used when running WebAssembly programs.

Functions§

load_module
Load a Webassembly module, trying to use a pre-compiled version if possible.
run_import_hooks 🔒
Runs the import phase of hooks, returning the merged imports and the per-hook states, aligned by index with hooks.
run_setup_hooks 🔒
Runs the setup phase of hooks, handing each hook the state it produced during the import phase.

Type Aliases§

DynRuntime