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§
Sourcefn 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 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.
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.