pub enum SegmentState {
Live,
Dead,
Orphan,
}Expand description
How a segment on disk stands against the manifest.
Variants§
Live
The manifest lists it.
Dead
Not live, and superseded: garbage collection deletes it once it is old
enough. The rule is the one Namespace::gc
uses.
Orphan
Not live and not superseded. A compaction that has not published yet
looks like this, and so does one that stopped before it did. It is also
what GC leaves alone at 1-<folded>.
Trait Implementations§
Source§impl Clone for SegmentState
impl Clone for SegmentState
impl Copy for SegmentState
Source§impl Debug for SegmentState
impl Debug for SegmentState
Source§impl Display for SegmentState
impl Display for SegmentState
impl Eq for SegmentState
Source§impl PartialEq for SegmentState
impl PartialEq for SegmentState
impl StructuralPartialEq for SegmentState
Auto Trait Implementations§
impl Forget for SegmentState
impl Freeze for SegmentState
impl Move for SegmentState
impl RefUnwindSafe for SegmentState
impl Send for SegmentState
impl Sync for SegmentState
impl Unpin for SegmentState
impl UnsafeUnpin for SegmentState
impl UnwindSafe for SegmentState
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