Enum lsm_tree::compaction::Choice
source · pub enum Choice {
DoNothing,
DoCompact(Input),
DeleteSegments(Vec<Arc<str>>),
}
Expand description
Describes what to do (compact or not)
Variants§
DoNothing
Just do nothing.
DoCompact(Input)
Compacts some segments into a new level.
DeleteSegments(Vec<Arc<str>>)
Delete segments without doing compaction.
This may be used by a compaction strategy that wants to delete old data
without having to compact it away, like fifo::Strategy
.
Trait Implementations§
source§impl PartialEq for Choice
impl PartialEq for Choice
impl Eq for Choice
impl StructuralEq for Choice
impl StructuralPartialEq for Choice
Auto Trait Implementations§
impl RefUnwindSafe for Choice
impl Send for Choice
impl Sync for Choice
impl Unpin for Choice
impl UnwindSafe for Choice
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
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.