Skip to main content

WhiskerModuleCallback

Type Alias WhiskerModuleCallback 

Source
pub type WhiskerModuleCallback = extern "C" fn(user_data: *mut c_void, result: *const WhiskerValueRaw);
Expand description

Callback type for whisker_bridge_invoke_module_async. The result pointer is borrowed for the duration of the call only — the bridge frees the underlying allocations once the callback returns, so closures that need to retain the value must copy into Rust-owned storage via the whisker-runtime wrapper.