Expand description
Definition of a sandbox environment.
Structs§
- Entry
- An entry in a environment definition table.
- Environment
Definition - Definition of runtime that could be used by sandboxed code.
- Host
Error - Error error that can be returned from host function.
- Wasm
Return Value - Typed value that can be returned from a wasm function through the dispatch thunk. Additionally contains globals values.
Enums§
- Extern
Entity - Describes an entity to define or import into the environment.
- Instantiate
Constants§
- ERROR_
GLOBALS_ NOT_ FOUND - A global variable is not found.
- ERROR_
GLOBALS_ OK - A global variable has been successfully changed.
- ERROR_
GLOBALS_ OTHER - A global variable is immutable or has a different type.
- ERR_
EXECUTION - Execution error occurred (typically trap).
- ERR_
MODULE - Validation or instantiation error occurred when creating new sandboxed module instance.
- ERR_OK
- No error happened.
- ERR_
OUT_ OF_ BOUNDS - Out-of-bounds access attempted with memory or table.
- GLOBAL_
NAME_ GAS - MEM_
UNLIMITED - Constant for specifying no limit when creating a sandboxed memory instance. For FFI purposes.