pub type EventHandler = Box<dyn Fn(&Event) + Send + Sync>;Expand description
User-supplied callback. Receives the raw JSON payload for the topic. Runs synchronously inside the actor loop — keep it fast or spawn.
Aliased Type§
pub struct EventHandler(/* private fields */);