pub trait AsEventTopic: 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()
.