Module func

Source
Expand description

Wrappers for host and guest functions.

Re-exports§

pub use ret_type::SupportedReturnType;
pub use host_functions::HostFunction0;
pub use host_functions::HostFunction1;
pub use host_functions::HostFunction10;
pub use host_functions::HostFunction2;
pub use host_functions::HostFunction3;
pub use host_functions::HostFunction4;
pub use host_functions::HostFunction5;
pub use host_functions::HostFunction6;
pub use host_functions::HostFunction7;
pub use host_functions::HostFunction8;
pub use host_functions::HostFunction9;

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.
host_functions
Definitions and functionality to enable guest-to-host function calling, also called “host functions”
ret_type
Definitions and functionality for supported return types

Structs§

HyperlightFunction
Generic HyperlightFunction

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§

SupportedParameterType
This is a marker trait that is used to indicate that a type is a valid Hyperlight parameter type.