Enum rocksdb::compaction_filter::Decision
source · 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§
impl Freeze for Decision
impl RefUnwindSafe for Decision
impl Send for Decision
impl Sync for Decision
impl Unpin for Decision
impl UnwindSafe for Decision
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more