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§
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,
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".