kona_derive_alloy::prelude

Trait FrameQueueProvider

Source
pub trait FrameQueueProvider {
    type Item: Into<Bytes>;

    // Required method
    fn next_data<'life0, 'async_trait>(
        &'life0 mut self,
    ) -> Pin<Box<dyn Future<Output = Result<Self::Item, PipelineErrorKind>> + Send + 'async_trait>>
       where 'life0: 'async_trait,
             Self: 'async_trait;
}
Expand description

Provides data frames for the FrameQueue stage.

Required Associated Types§

Source

type Item: Into<Bytes>

An item that can be converted into a byte array.

Required Methods§

Source

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

Retrieves the next data item from the L1 retrieval stage. If there is data, it pushes it into the next stage. If there is no data, it returns an error.

Implementors§