kona_derive::stages

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 = PipelineResult<Self::Item>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: '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 = PipelineResult<Self::Item>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: '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§