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 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 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§