ReappliedTransactionsPipes

Trait ReappliedTransactionsPipes 

Source
pub trait ReappliedTransactionsPipes: Send + Sync {
    // Required methods
    fn run<'life0, 'async_trait>(
        &'life0 mut self,
        events: Vec<ReappliedTransactionsEvent>,
        metrics: Arc<MetricsCollection>,
    ) -> Pin<Box<dyn Future<Output = IndexerResult<HashSet<Pubkey>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn filters(&self) -> &Vec<Box<dyn Filter + Send + Sync + 'static>>;
}
Expand description

Handles reapplication events (transactions restored after a reorg) and returns any affected accounts to update downstream.

Required Methods§

Source

fn run<'life0, 'async_trait>( &'life0 mut self, events: Vec<ReappliedTransactionsEvent>, metrics: Arc<MetricsCollection>, ) -> Pin<Box<dyn Future<Output = IndexerResult<HashSet<Pubkey>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn filters(&self) -> &Vec<Box<dyn Filter + Send + Sync + 'static>>

Implementors§