kona_derive::traits

Trait NextAttributes

Source
pub trait NextAttributes {
    // Required method
    fn next_attributes<'life0, 'async_trait>(
        &'life0 mut self,
        parent: L2BlockInfo,
    ) -> Pin<Box<dyn Future<Output = PipelineResult<OpAttributesWithParent>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}
Expand description

NextAttributes defines the interface for pulling attributes from the top level AttributesQueue stage of the pipeline.

Required Methods§

Source

fn next_attributes<'life0, 'async_trait>( &'life0 mut self, parent: L2BlockInfo, ) -> Pin<Box<dyn Future<Output = PipelineResult<OpAttributesWithParent>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Returns the next OpAttributesWithParent from the current batch.

Implementors§