Skip to main content

render_hook_payload

Function render_hook_payload 

Source
pub fn render_hook_payload(
    req: &RenderRequest<'_>,
) -> Result<RenderedHookPayload, RenderError>
Expand description

Render a harness hook-protocol payload from neutral lifecycle inputs.

Dispatches on RenderRequest::adapter. Returns RenderError::UnsupportedEvent when the adapter’s hook protocol does not surface a payload for the requested LifecycleEventKind; callers in routing layers may treat that as “skip emission” rather than an error. The future router (issue #7) is the expected primary caller of this entry point.