Skip to main content

Module func

Module func 

Source
Expand description

Wrappers for host and guest functions. Host-side guest↔host RPC types.

After the FB+SCALE → rkyv migration this module is a thin re-export of HostFn (the boxed FnMut(&[u8]) -> Result<Vec<u8>> signature every host function shares) + Registerable (the trait that exposes register_host_function(fn_id, hf) on Uninitialized/MultiUse sandboxes).

Traits§

Registerable
A sandbox on which host functions can be registered.

Type Aliases§

HostFn
Boxed host function. Takes a payload byte slice (the inner Request.payload), returns response payload bytes.