Attribute Macro module_changed_event_handler

Source
#[module_changed_event_handler]
Expand description

Proc macro which is set on a function that need to be called whenever a module is loaded or unloaded on the server. The function must accept a [Context] and [ModuleChangeSubevent].

Example:

#[module_changed_event_handler]
fn module_changed_event_handler(ctx: &Context, values: ModuleChangeSubevent) { ... }