Skip to main content

TriggerFn

Type Alias TriggerFn 

Source
pub type TriggerFn = Box<dyn Fn(&[Item], MutationPoint) -> Option<CompactionReason> + Send + Sync>;
Expand description

Boxed predicate driving StrategyCompactor: it inspects the transcript and current MutationPoint and returns the reason to fire compaction, or None to skip.

Aliased Typeยง

pub struct TriggerFn(/* private fields */);