pub trait EventTopic: AsEventValue {
type Topic;
// Required method
fn topic() -> Self::Topic
where Self: Sized;
}Expand description
Trait for events that define their own topic.
This trait allows events to specify which topic they belong to,
enabling the use of the convenient emit() method instead of
requiring explicit topic specification with emit_by_topic().
Required Associated Types§
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".