Skip to main content

create_hook_context

Function create_hook_context 

Source
pub fn create_hook_context() -> HookContext
Expand description

Creates a new HookContext allocated via Box::leak.

The allocated memory lives for the remainder of the program and will never be freed. This is acceptable for WASM single-threaded contexts where DynamicNode instances persist for the application lifetime.

ยงReturns

  • HookContext: A handle to the newly allocated hook context.