role_changed_event_handler

Attribute Macro role_changed_event_handler 

Source
#[role_changed_event_handler]
Expand description

Proc macro which is set on a function that need to be called whenever the server role changes. The function must accept a [Context] and [ServerRole].

Example:

#[role_changed_event_handler]
fn role_changed_event_handler(ctx: &Context, values: ServerRole) { ... }