kona_derive::traits

Trait Pipeline

Source
pub trait Pipeline: OriginProvider + Iterator<Item = OpAttributesWithParent> {
    // Required methods
    fn peek(&self) -> Option<&OpAttributesWithParent>;
    fn step<'life0, 'async_trait>(
        &'life0 mut self,
        cursor: L2BlockInfo,
    ) -> Pin<Box<dyn Future<Output = StepResult> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}
Expand description

This trait defines the interface for interacting with the derivation pipeline.

Required Methods§

Source

fn peek(&self) -> Option<&OpAttributesWithParent>

Peeks at the next OpAttributesWithParent from the pipeline.

Source

fn step<'life0, 'async_trait>( &'life0 mut self, cursor: L2BlockInfo, ) -> Pin<Box<dyn Future<Output = StepResult> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Attempts to progress the pipeline.

Implementors§