[][src]Trait mappum_rocksdb::compaction_filter::CompactionFilterFn

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

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

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

Loading content...