pub enum Choice {
DoNothing,
Move(Input),
Merge(Input),
Drop(HashSet<SegmentId, Xxh3Builder>),
}
Expand description
Describes what to do (compact or not)
Variants§
DoNothing
Just do nothing.
Move(Input)
Moves segments into another level without rewriting.
Merge(Input)
Compacts some segments into a new level.
Drop(HashSet<SegmentId, Xxh3Builder>)
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§
impl Eq for Choice
impl StructuralPartialEq for Choice
Auto Trait Implementations§
impl Freeze for Choice
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
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.