Expand description
This module implements sandboxing support in the runtime.
Sandboxing is baked by twasmi at the moment. In future, however, we would like to add/switch to a compiled execution engine.
Structs§
- Guest
Environment - An environment in which the guest module is instantiated.
- Guest
Externals - Implementation of
Externals
that allows execution of guest module with externals that might refer functions defined by supervisor. - Sandbox
Instance - Sandboxed instance of a wasm module.
- Store
- This struct keeps track of all sandboxed components.
- Supervisor
Func Index - Index of a function inside the supervisor.
- Unregistered
Instance - An unregistered sandboxed instance.
Enums§
- Instantiation
Error - Error occurred during instantiation of a sandboxed module.
Traits§
- Sandbox
Capabilities - This trait encapsulates sandboxing capabilities.
Functions§
- instantiate
- Instantiate a guest module and return it’s index in the store.