Skip to main content

debug_handler

Attribute Macro debug_handler 

Source
#[debug_handler]
Expand description

Debug variant of [handler] that writes generated code to a file.

The generated code is written to target/evento_debug_handler_macro.rs for inspection. Useful for understanding what the macro produces.

§Example

#[evento::debug_handler]
async fn handle_event(
    event: Event<MyEvent>,
    projection: &mut MyView,
) -> anyhow::Result<()> {
    // ...
}