[][src]Trait sqs_lambda::event_emitter::EventEmitter

pub trait EventEmitter {
    type Event;
    type Error: Debug;
    fn emit_event<'life0, 'async_trait>(
        &'life0 mut self,
        completed_events: Vec<Self::Event>
    ) -> Pin<Box<dyn Future<Output = Result<(), Self::Error>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
; }

Associated Types

type Event

type Error: Debug

Loading content...

Required methods

fn emit_event<'life0, 'async_trait>(
    &'life0 mut self,
    completed_events: Vec<Self::Event>
) -> Pin<Box<dyn Future<Output = Result<(), Self::Error>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 

Loading content...

Implementors

impl EventEmitter for FsEventEmitter[src]

type Event = Vec<u8>

type Error = Error<()>

impl<S, F, OnEmission, EmissionResult> EventEmitter for S3EventEmitter<S, F, OnEmission, EmissionResult> where
    S: S3 + Send + Sync + 'static,
    F: Fn(&[u8]) -> String + Send + Sync,
    EmissionResult: Future<Output = Result<(), Box<dyn Error + Send + Sync + 'static>>> + Send + 'static,
    OnEmission: Fn(String, String) -> EmissionResult + Send + Sync + 'static, 
[src]

type Event = Vec<u8>

type Error = Box<dyn Error>

Loading content...