pub trait EventRouting {
const BUS: BusKind;
}Expand description
Declares which event bus an event type belongs to.
Every event type must implement this trait (alongside Event)
so the PluginRegistrar can route handler registration to the
correct bus automatically. The associated constant BUS is
resolved at compile time — no runtime dispatch overhead.
Implemented via the instant_event!, instant_cancellable_event!,
game_event!, and game_cancellable_event! macros in basalt-api.
Required Associated Constants§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.