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.
Required Associated Types§
Provided Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".