pub trait EventHandler<E> {
type Output;
type Error;
// Required method
fn handle(&self, event: E) -> Result<Self::Output, Self::Error>;
}Required Associated Types§
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".