Skip to main content

EventHandler

Type Alias EventHandler 

Source
pub type EventHandler = fn(&Amx, &mut Args<'_>) -> EventReturn;
Expand description

Handler wrapper generated by #[event].

Receives the &Amx and the Args the dispatcher built from the VM stack, parses the callback arguments into the declared Rust types, invokes the plugin method, and reports whether to run or suppress the original public.