risingwave_hummock_trace

Trait LocalReplay

source
pub trait LocalReplay:
    LocalReplayRead
    + ReplayWrite
    + Send
    + Sync {
    // Required methods
    fn init<'life0, 'async_trait>(
        &'life0 mut self,
        options: TracedInitOptions,
    ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn seal_current_epoch(
        &mut self,
        next_epoch: u64,
        opts: TracedSealCurrentEpochOptions,
    );
    fn is_dirty(&self) -> bool;
    fn epoch(&self) -> u64;
    fn try_flush<'life0, 'async_trait>(
        &'life0 mut self,
    ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn flush<'life0, 'async_trait>(
        &'life0 mut self,
    ) -> Pin<Box<dyn Future<Output = Result<usize>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}

Required Methods§

source

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

source

fn seal_current_epoch( &mut self, next_epoch: u64, opts: TracedSealCurrentEpochOptions, )

source

fn is_dirty(&self) -> bool

source

fn epoch(&self) -> u64

source

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

source

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

Implementors§