risingwave_hummock_trace::replay::worker

Trait ReplayWorkerScheduler

source
pub trait ReplayWorkerScheduler {
    // Required methods
    fn schedule(&mut self, record: Record);
    fn send_result(&mut self, record: Record);
    fn wait_finish<'life0, 'async_trait>(
        &'life0 mut self,
        record: Record,
    ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn shutdown<'async_trait>(
        self,
    ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
       where Self: 'async_trait;
}

Required Methods§

source

fn schedule(&mut self, record: Record)

source

fn send_result(&mut self, record: Record)

source

fn wait_finish<'life0, 'async_trait>( &'life0 mut self, record: Record, ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

source

fn shutdown<'async_trait>( self, ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
where Self: 'async_trait,

Implementors§