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

pub trait EventHandler {
    type InputEvent;
    type OutputEvent: Clone + Send + Sync + 'static;
    type Error: Debug + Send + Sync + 'static;
#[must_use]    pub 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[src]

type OutputEvent: Clone + Send + Sync + 'static[src]

type Error: Debug + Send + Sync + 'static[src]

Loading content...

Required methods

#[must_use]pub 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, 
[src]

Loading content...

Implementors

Loading content...