Skip to main content

RuntimeFrameCallback

Type Alias RuntimeFrameCallback 

Source
pub type RuntimeFrameCallback = unsafe extern "C" fn(emit_frame: unsafe extern "C" fn(&RuntimeStackFrame<'_>));
Expand description

Function signature for runtime frame collection callbacks

This callback is invoked during crash handling in a signal context, so it must be signal-safe:

§Parameters

  • emit_frame: Function to call for each runtime frame (takes frame pointer)

§Safety

The callback function is marked unsafe because:

  • It receives function pointers that take raw pointers as parameters
  • The callback must ensure any pointers it passes to these functions are valid