pub trait EventHandler<E>:
Send
+ Sync
+ 'static {
// Required method
fn handle(&self, event: E) -> BoxFuture<'_, Result<()>>;
}Expand description
Re-exported public API.
Public Caelix extension trait EventHandler.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".