pub trait DataAvailabilityProvider {
type Item: Send + Sync + Debug + Into<Bytes>;
// Required methods
fn next<'life0, 'life1, 'async_trait>(
&'life0 mut self,
block_ref: &'life1 BlockInfo,
) -> Pin<Box<dyn Future<Output = PipelineResult<Self::Item>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn clear(&mut self);
}
Expand description
Describes the functionality of a data source that can provide data availability information.
Required Associated Types§
Required Methods§
Sourcefn next<'life0, 'life1, 'async_trait>(
&'life0 mut self,
block_ref: &'life1 BlockInfo,
) -> Pin<Box<dyn Future<Output = PipelineResult<Self::Item>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn next<'life0, 'life1, 'async_trait>(
&'life0 mut self,
block_ref: &'life1 BlockInfo,
) -> Pin<Box<dyn Future<Output = PipelineResult<Self::Item>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Returns the next data for the given BlockInfo.
Returns a PipelineError::Eof
if there is no more data for the given block ref.