pub struct CompactionFilterCallback<F> where
    F: CompactionFilterFn
{ pub name: CString, pub filter_fn: F, }

Fields

name: CStringfilter_fn: F

Trait Implementations

Returns a name that identifies this compaction filter. The name will be printed to LOG file on start up for diagnosis. Read more

The compaction process invokes this method for kv that is being compacted. The application can inspect the existing value of the key and make decision based on it. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.