FutureQueueConsumer

Trait FutureQueueConsumer 

Source
pub trait FutureQueueConsumer: Send + Sync {
    // Required methods
    fn on_due<'life0, 'life1, 'async_trait>(
        &'life0 self,
        future_ref: &'life1 FutureElementRef,
    ) -> Pin<Box<dyn Future<Output = Result<(), Box<dyn Error + Send + Sync>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn on_error<'life0, 'life1, 'async_trait>(
        &'life0 self,
        future_ref: &'life1 FutureElementRef,
        error: Box<dyn Error + Send + Sync>,
    ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn now(&self) -> u64;
}

Required Methods§

Source

fn on_due<'life0, 'life1, 'async_trait>( &'life0 self, future_ref: &'life1 FutureElementRef, ) -> Pin<Box<dyn Future<Output = Result<(), Box<dyn Error + Send + Sync>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source

fn on_error<'life0, 'life1, 'async_trait>( &'life0 self, future_ref: &'life1 FutureElementRef, error: Box<dyn Error + Send + Sync>, ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source

fn now(&self) -> u64

Implementors§