Modules§
Macros§
- submit_
handler - Enter an element into the plugin registry corresponding to its type.
Structs§
- Any
- CodeMsg
- Coded
Output Stream - Buffered write with handy utilities
- Context
- Empty
- Exports
- Exports is a special kind of map that allows easily unwrapping the types of instances.
- Function
- A WebAssembly
function
instance. - Import
Object - All of the import data used when instantiating.
- InArgs
- Generated files are compatible only with the same version of protobuf runtime.
- Instance
- Instance
Env - Module
- A WebAssembly Module contains stateless WebAssembly code that has already been compiled and can be instantiated multiple times.
- OutRets
- VmHandler
Api - Wasi
State - Top level data type containing all* the state with which WASI can interact.
- Wasi
State Builder - Convenient builder API for configuring WASI via
WasiState
. - Wasm
Caller - WasmCtx
- Default WasmContext implementation.
- WasmUri
Constants§
- CODE_
COMPILE - CODE_
EXPORTS - CODE_
INSTANTIATION - CODE_
MEM - CODE_
NONE - CODE_
PROTO - CODE_
RUNTIME - CODE_
UNKNOWN - CODE_
WASI
Traits§
- Message
- Trait implemented for all generated structs for protobuf messages.
- Protobuf
Enum - Trait implemented by all protobuf enum types.
- Wasm
Context - WasmContext is wasm context abstraction.
- Wasm
File
Functions§
- custom_
load_ wasm - file_
descriptor_ proto - load_
wasm - pack_
any - pack_
empty - set_
handler - unpack_
any - wasm_
handle - The underlying function of wasm to handle requests.
Type Aliases§
- CtxId
- FnBuild
Import Object - FnCheck
Module - Method
- Result
- RetCode
- Val
- WebAssembly computations manipulate values of basic value types:
- VmHandler
- VmMethod
- Wasm
Method
Attribute Macros§
- vm_
handle - Register vm’s ABI for handling wasm callbacks.
format description:
#[vm_handle(wasmy_abi::Method)]
example: - wasm_
handle - Register wasm’s ABI for handling requests.
format description:
#[wasm_handle(i32)] or #[wasm_handle(method=i32)]
example: - wasm_
onload - Register the ABI for wasm load-time initialization state.
Register wasm’s ABI for handling requests.
format description:
#[wasm_onload]
example: