EventEmitter

Trait EventEmitter 

Source
pub trait EventEmitter {
    type Event;
    type Error: Debug;

    // Required method
    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 Self: 'async_trait,
             'life0: 'async_trait;
}

Required Associated Types§

Required Methods§

Source

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 Self: 'async_trait, 'life0: 'async_trait,

Implementors§

Source§

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,