pub trait EventHandler:
Clone
+ Send
+ Sync {
type Error: Display + Send + Sync;
// Required method
fn handle_events(
&self,
events: Events,
) -> impl Future<Output = Result<(), Self::Error>> + Send;
}Required Associated Types§
Required Methods§
fn handle_events( &self, events: Events, ) -> impl Future<Output = Result<(), Self::Error>> + Send
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".