Trait TicketAggregatorTrait

Source
pub trait TicketAggregatorTrait {
    // Required method
    fn aggregate_tickets<'life0, 'life1, 'async_trait>(
        &'life0 self,
        channel: &'life1 Hash,
        prerequisites: AggregationPrerequisites,
    ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
}

Required Methods§

Source

fn aggregate_tickets<'life0, 'life1, 'async_trait>( &'life0 self, channel: &'life1 Hash, prerequisites: AggregationPrerequisites, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Pushes a new collection of tickets into the processing.

Implementors§

Source§

impl<T, U, Db> TicketAggregatorTrait for AwaitingAggregator<T, U, Db>
where Db: HoprDbTicketOperations + Send + Sync + Clone + Debug, T: Send, U: Send,