Crate gear_sandbox_env

Crate gear_sandbox_env 

Source
Expand description

Definition of a sandbox environment.

Structs§

Entry
An entry in a environment definition table.
EnvironmentDefinition
Definition of runtime that could be used by sandboxed code.
HostError
Error error that can be returned from host function.
WasmReturnValue
Typed value that can be returned from a wasm function through the dispatch thunk. Additionally contains globals values.

Enums§

ExternEntity
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.