Attribute Macro loading_event_handler

Source
#[loading_event_handler]
Expand description

Proc macro which is set on a function that need to be called whenever a loading event happened. The function must accept a [Context] and [LoadingSubevent].

Example:

#[loading_event_handler]
fn loading_event_handler(ctx: &Context, values: LoadingSubevent) { ... }