Skip to main content

PayloadRetriever

Trait PayloadRetriever 

Source
pub trait PayloadRetriever<T> {
    type Message;

    // Required method
    fn retrieve_event<'life0, 'life1, 'async_trait>(
        &'life0 mut self,
        msg: &'life1 Self::Message,
    ) -> Pin<Box<dyn Future<Output = Result<Option<T>, Box<dyn Error>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
}

Required Associated Types§

Required Methods§

Source

fn retrieve_event<'life0, 'life1, 'async_trait>( &'life0 mut self, msg: &'life1 Self::Message, ) -> Pin<Box<dyn Future<Output = Result<Option<T>, Box<dyn Error>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<S, SInit, D, E> PayloadRetriever<E> for S3PayloadRetriever<S, SInit, D, E>
where S: S3 + Clone + Send + Sync + 'static, SInit: Fn(String) -> S + Clone + Send + Sync + 'static, D: PayloadDecoder<E> + Clone + Send + 'static, E: Send + 'static,