pub trait EventSubscriptions {
// Required method
fn get_subscriptions(&self) -> Vec<EventType>;
}Expand description
A trait that defines which events your plugin will receive.
You can implement this trait manually, or you can use the
#[derive(Plugin)] along with #[events(Event1, Event2)
implementation to generate it for you.