Skip to main content

EventHandler

Trait EventHandler 

Source
pub trait EventHandler: Send + 'static {
    // Required method
    fn handle_event(
        &mut self,
        event: EventBatch,
    ) -> impl Future<Output = Result<()>> + Send;
}

Required Methods§

Source

fn handle_event( &mut self, event: EventBatch, ) -> impl Future<Output = Result<()>> + Send

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl EventHandler for Sender<EventBatch>

Source§

fn handle_event( &mut self, event: EventBatch, ) -> impl Future<Output = Result<()>> + Send

Source§

impl EventHandler for Sender<EventBatch>

Source§

fn handle_event( &mut self, event: EventBatch, ) -> impl Future<Output = Result<()>> + Send

Implementors§