Module func

Source
Expand description

Wrappers for host and guest functions.

Modules§

call_ctx
Context structures used to allow the user to call one or more guest functions on the same Hyperlight sandbox instance, all from within the same state and mutual exclusion context.

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.
ResultType
A trait to handle either a SupportedReturnType or a Result
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.