Module func

Source
Expand description

Wrappers for host and guest functions.

Structs§

HostFunction
Re-export for HostFunction trait A representation of a host function. This is a thin wrapper around a Fn(Args) -> Result<Output>.

Enums§

ParameterValue
Re-export for ParameterValue enum Supported parameter types with values for function calling.
ReturnType
Re-export for ReturnType enum Supported return types from function calling.
ReturnValue
Re-export for ReturnType enum Supported return types with values from function calling.

Traits§

ParameterTuple
A trait to describe the tuple of parameters that a host function can take.
Registerable
Re-export for HostFunction trait A sandbox on which (primitive) host functions can be registered
ResultType
A trait to handle either a SupportedReturnType or a Result<impl SupportedReturnType>
SupportedParameterType
This is a marker trait that is used to indicate that a type is a valid Hyperlight parameter type.
SupportedReturnType
This is a marker trait that is used to indicate that a type is a valid Hyperlight return type.