pub enum Compaction {
Nothing,
Published {
segments: Vec<String>,
folded_through: u64,
merged_segments: usize,
docs: usize,
tombstones: usize,
},
Superseded,
}Expand description
What a call to Namespace::compact did.
Variants§
Nothing
The WAL tail was empty and the segment count was within the limit.
Published
A segment was written and the manifest now lists it.
Fields
Superseded
Another compactor changed the manifest first, so this run published nothing. The segment it wrote is either an orphan or the very object the winner published.
Trait Implementations§
Source§impl Clone for Compaction
impl Clone for Compaction
Source§impl Debug for Compaction
impl Debug for Compaction
impl Eq for Compaction
Source§impl PartialEq for Compaction
impl PartialEq for Compaction
impl StructuralPartialEq for Compaction
Auto Trait Implementations§
impl Forget for Compaction
impl Freeze for Compaction
impl Move for Compaction
impl RefUnwindSafe for Compaction
impl Send for Compaction
impl Sync for Compaction
impl Unpin for Compaction
impl UnsafeUnpin for Compaction
impl UnwindSafe for Compaction
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more