InstructionPipes

Trait InstructionPipes 

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

Drives a set of instruction decoders and forwards decoded items to a processor.

Implementors should apply any configured Filters before decoding or processing, and must be safe to call concurrently.

Required Methods§

Source

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

Source

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

Implementors§

Source§

impl<T: Send + 'static> InstructionPipes<'_> for InstructionPipe<T>