pub trait EventListener:
Send
+ Sync
+ 'static {
type Key;
type Value;
// Provided method
fn on_leave(&self, reason: Event, key: &Self::Key, value: &Self::Value)
where Self::Key: Key,
Self::Value: Value { ... }
}Expand description
Trait for the customized event listener.