Expand description
Definitions and functionality to enable guest-to-host function calling, also called “host functions”
This module includes functionality to do the following
- Define several prototypes for what a host function must look like, including the number of arguments (arity) they can have, supported argument types, and supported return types
- Registering host functions to be callable by the guest
- Dynamically dispatching a call from the guest to the appropriate host function
Traits§
- Host
Function0 - Trait for registering a host function with zero parameters.
- Host
Function1 - Trait for registering a host function with $N parameters.
- Host
Function2 - Trait for registering a host function with $N parameters.
- Host
Function3 - Trait for registering a host function with $N parameters.
- Host
Function4 - Trait for registering a host function with $N parameters.
- Host
Function5 - Trait for registering a host function with $N parameters.
- Host
Function6 - Trait for registering a host function with $N parameters.
- Host
Function7 - Trait for registering a host function with $N parameters.
- Host
Function8 - Trait for registering a host function with $N parameters.
- Host
Function9 - Trait for registering a host function with $N parameters.
- Host
Function10 - Trait for registering a host function with $N parameters.