Skip to main content

HandleEvent

Trait HandleEvent 

Source
pub trait HandleEvent<'a>: Send + Sync {
    // Required method
    fn handle_event_async<'life0, 'async_trait>(
        &'life0 self,
        event: HttpEvent,
    ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}
Expand description

Helper trait for async handling

Required Methods§

Source

fn handle_event_async<'life0, 'async_trait>( &'life0 self, event: HttpEvent, ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Implementors§