Module HostBridge

Module HostBridge 

Source
Expand description

Host Bridge

Provides bidirectional communication between the host (Grove) and WASM modules. Handles function calls, data transfer, and marshalling between the two environments.

Structs§

AsyncCallback
Callback for async function responses
FunctionSignature
Function signature information
HostBridgeImpl
Host Bridge for WASM communication
HostFunction
Host function definition
HostMessage
Message sent from WASM to host
HostResponse
Response sent from host to WASM
WASMMessage
Message from host to WASM

Enums§

BridgeError
Host bridge error types
ParamType
Parameter types for WASM functions
ReturnType
Return types for WASM functions

Functions§

deserialize_from_bytes
Utility function to deserialize Bytes to data
marshal_args
Marshal arguments for WASM function call
serialize_to_bytes
Utility function to serialize data to Bytes
unmarshal_return
Unmarshal return values from WASM function call

Type Aliases§

AsyncHostFunctionCallback
Async host function callback type
BridgeResult
Type-safe result for operations
HostFunctionCallback
Host function callback type