risingwave_hummock_traceTrait 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;
}