pub trait EventHandler: Send + Sync {
// Required method
fn handle_event(
&mut self,
event: &Event,
block_height: Height,
) -> impl Future<Output = Result<()>> + Send;
}
Required Methods§
fn handle_event( &mut self, event: &Event, block_height: Height, ) -> impl Future<Output = Result<()>> + Send
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.