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 'life0: 'async_trait,
Self: 'async_trait;
}
Expand description
This trait defines the interface for interacting with the derivation pipeline.
Required Methods§
Sourcefn peek(&self) -> Option<&OpAttributesWithParent>
fn peek(&self) -> Option<&OpAttributesWithParent>
Peeks at the next OpAttributesWithParent from the pipeline.
Sourcefn step<'life0, 'async_trait>(
&'life0 mut self,
cursor: L2BlockInfo,
) -> Pin<Box<dyn Future<Output = StepResult> + Send + 'async_trait>>where
'life0: 'async_trait,
Self: 'async_trait,
fn step<'life0, 'async_trait>(
&'life0 mut self,
cursor: L2BlockInfo,
) -> Pin<Box<dyn Future<Output = StepResult> + Send + 'async_trait>>where
'life0: 'async_trait,
Self: 'async_trait,
Attempts to progress the pipeline.