[][src]Trait sqs_lambda::event_handler::EventHandler

pub trait EventHandler {
    type InputEvent;
    type OutputEvent: Clone + Send + Sync + 'static;
    type Error: Debug + Clone + Send + Sync + 'static;
    fn handle_event<'life0, 'async_trait>(
        &'life0 mut self,
        input: Self::InputEvent
    ) -> Pin<Box<dyn Future<Output = OutputEvent<Self::OutputEvent, Self::Error>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
; }

Associated Types

type InputEvent

type OutputEvent: Clone + Send + Sync + 'static

type Error: Debug + Clone + Send + Sync + 'static

Loading content...

Required methods

fn handle_event<'life0, 'async_trait>(
    &'life0 mut self,
    input: Self::InputEvent
) -> Pin<Box<dyn Future<Output = OutputEvent<Self::OutputEvent, Self::Error>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 

Loading content...

Implementors

Loading content...