kona_derive_alloy::prelude

Trait BatchStreamProvider

Source
pub trait BatchStreamProvider {
    // Required methods
    fn next_batch<'life0, 'async_trait>(
        &'life0 mut self,
    ) -> Pin<Box<dyn Future<Output = Result<Batch, PipelineErrorKind>> + Send + 'async_trait>>
       where 'life0: 'async_trait,
             Self: 'async_trait;
    fn flush(&mut self);
}
Expand description

Provides Batches for the BatchStream stage.

Required Methods§

Source

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

Returns the next Batch in the BatchStream stage.

Source

fn flush(&mut self)

Drains the recent Channel if an invalid span batch is found post-holocene.

Implementors§