Skip to main content

Compactor

Trait Compactor 

Source
pub trait Compactor:
    Send
    + Sync
    + 'static {
    // Required methods
    fn budget(&self, ctx: &Context) -> Budget;
    fn compact<'life0, 'life1, 'async_trait>(
        &'life0 self,
        stage: CompactionStage,
        ctx: &'life1 mut Context,
    ) -> Pin<Box<dyn Future<Output = Result<(), CompactError>> + Send + 'async_trait>>
       where 'life0: 'async_trait,
             'life1: 'async_trait,
             Self: 'async_trait;
}

Required Methods§

Source

fn budget(&self, ctx: &Context) -> Budget

Source

fn compact<'life0, 'life1, 'async_trait>( &'life0 self, stage: CompactionStage, ctx: &'life1 mut Context, ) -> Pin<Box<dyn Future<Output = Result<(), CompactError>> + Send + 'async_trait>>
where 'life0: 'async_trait, 'life1: 'async_trait, Self: 'async_trait,

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§