Module call_ctx

Source
Expand description

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ยง

MultiUseGuestCallContext
A context for calling guest functions.
SingleUseGuestCallContext
A context for calling guest functions. Can only be created from an existing SingleUseSandbox, and once created, guest functions against that sandbox can be made from this until it is dropped.
SingleUseMultiGuestCallContext
A context for making multiple calls to guest functions in a SingleUseSandbox. Can only be created from an existing SingleUseGuestCallContext using the call_using_closure method. Once created, calls to guest functions may be made through this context until it is dropped. Once dropped the underlying SingleUseGuestCallContext and associated SingleUseSandbox will be dropped