#[non_exhaustive]pub enum EntryState {
Written,
Deleted,
Unknown,
}Expand description
The state of a SEGB record.
Values are sourced from ccl_segb_common.py:EntryState:
| Value | Name | Meaning |
|---|---|---|
| 1 | Written | Normal, live record |
| 3 | Deleted | Logically deleted record |
| 4 | Unknown | Placeholder / empty record (v2) |
Unknown (4) in SEGB v2 marks a slot the code skips; it is exposed here
so callers can observe it without the reader silently dropping the entry.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Written
Normal, live record. Value = 1.
Deleted
Logically deleted record. Value = 3.
Unknown
Empty placeholder (primarily SEGB v2). Value = 4.
Implementations§
Trait Implementations§
Source§impl Clone for EntryState
impl Clone for EntryState
Source§fn clone(&self) -> EntryState
fn clone(&self) -> EntryState
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 moreimpl Copy for EntryState
Source§impl Debug for EntryState
impl Debug for EntryState
impl Eq for EntryState
Source§impl Hash for EntryState
impl Hash for EntryState
Source§impl PartialEq for EntryState
impl PartialEq for EntryState
Source§fn eq(&self, other: &EntryState) -> bool
fn eq(&self, other: &EntryState) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for EntryState
Auto Trait Implementations§
impl Freeze for EntryState
impl RefUnwindSafe for EntryState
impl Send for EntryState
impl Sync for EntryState
impl Unpin for EntryState
impl UnsafeUnpin for EntryState
impl UnwindSafe for EntryState
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