pub enum Decision {
    Keep,
    Remove,
    Change(&'static [u8]),
}
Expand description

Decision about how to handle compacting an object

This is returned by a compaction filter callback. Depending on the value, the object may be kept, removed, or changed in the database during a compaction.

Variants§

§

Keep

Keep the old value

§

Remove

Remove the object from the database

§

Change(&'static [u8])

Change the value for the key

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.