pub trait AttributesProvider {
// Required methods
fn next_batch<'life0, 'async_trait>(
&'life0 mut self,
parent: L2BlockInfo,
) -> Pin<Box<dyn Future<Output = PipelineResult<SingleBatch>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn is_last_in_span(&self) -> bool;
}
Expand description
AttributesProvider is a trait abstraction that generalizes the BatchQueue stage.
Required Methods§
Sourcefn next_batch<'life0, 'async_trait>(
&'life0 mut self,
parent: L2BlockInfo,
) -> Pin<Box<dyn Future<Output = PipelineResult<SingleBatch>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn next_batch<'life0, 'async_trait>(
&'life0 mut self,
parent: L2BlockInfo,
) -> Pin<Box<dyn Future<Output = PipelineResult<SingleBatch>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Returns the next valid batch upon the given safe head.
Sourcefn is_last_in_span(&self) -> bool
fn is_last_in_span(&self) -> bool
Returns whether the current batch is the last in its span.