#[repr(u8)]pub enum IndexStatus {
Active = 0,
DroppedPending = 1,
}Expand description
Lifecycle state of an IndexDescriptor.
Active indexes participate in writes (#58) and reads (#60);
DroppedPending is a tombstone — the descriptor lingers so the
index_id is not reused and the next Pager::checkpoint can
reclaim the B+tree pages.
Variants§
Active = 0
Index is live — every write maintains it, every read may consult it.
DroppedPending = 1
Index was dropped by the reconciler; the descriptor remains
so the index_id is not reused. Pages are reclaimed on the
next Pager::checkpoint.
Trait Implementations§
Source§impl Clone for IndexStatus
impl Clone for IndexStatus
Source§fn clone(&self) -> IndexStatus
fn clone(&self) -> IndexStatus
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for IndexStatus
impl Debug for IndexStatus
Source§impl<'de> Deserialize<'de> for IndexStatus
impl<'de> Deserialize<'de> for IndexStatus
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for IndexStatus
impl PartialEq for IndexStatus
Source§fn eq(&self, other: &IndexStatus) -> bool
fn eq(&self, other: &IndexStatus) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for IndexStatus
impl Serialize for IndexStatus
impl Copy for IndexStatus
impl Eq for IndexStatus
impl StructuralPartialEq for IndexStatus
Auto Trait Implementations§
impl Freeze for IndexStatus
impl RefUnwindSafe for IndexStatus
impl Send for IndexStatus
impl Sync for IndexStatus
impl Unpin for IndexStatus
impl UnsafeUnpin for IndexStatus
impl UnwindSafe for IndexStatus
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