kona_derive_alloy::prelude

Trait AttributesProvider

Source
pub trait AttributesProvider {
    // Required methods
    fn next_batch<'life0, 'async_trait>(
        &'life0 mut self,
        parent: L2BlockInfo,
    ) -> Pin<Box<dyn Future<Output = Result<SingleBatch, PipelineErrorKind>> + Send + 'async_trait>>
       where 'life0: 'async_trait,
             Self: 'async_trait;
    fn is_last_in_span(&self) -> bool;
}
Expand description

AttributesProvider is a trait abstraction that generalizes the BatchQueue stage.

Required Methods§

Source

fn next_batch<'life0, 'async_trait>( &'life0 mut self, parent: L2BlockInfo, ) -> Pin<Box<dyn Future<Output = Result<SingleBatch, PipelineErrorKind>> + Send + 'async_trait>>
where 'life0: 'async_trait, Self: 'async_trait,

Returns the next valid batch upon the given safe head.

Source

fn is_last_in_span(&self) -> bool

Returns whether the current batch is the last in its span.

Implementors§