pub trait CompactionFilterFn: FnMut(u32, &[u8], &[u8]) -> Decision { }
Expand description

Function to filter compaction with.

This function takes the level of compaction, the key, and the existing value and returns the decision about how to handle the Key-Value pair.

See Options::set_compaction_filter for more details

Implementors§

source§

impl<F> CompactionFilterFn for Fwhere F: FnMut(u32, &[u8], &[u8]) -> Decision + Send + 'static,