Enum StoreEntry
pub enum StoreEntry {
Park {
run: RunId,
last_lsn: Lsn,
id_hash: u64,
timers: Vec<(Seq, TimerKind, u64)>,
journal: Vec<u8>,
},
Done {
run: RunId,
last_lsn: Lsn,
id_hash: u64,
status: Status,
finished_ms: u64,
journal: Vec<u8>,
},
Tombstone {
run: RunId,
},
Delta {
run: RunId,
last_lsn: Lsn,
id_hash: u64,
timers: Vec<(Seq, TimerKind, u64)>,
prev: BlobRef,
depth: u8,
chain: u64,
journal: Vec<u8>,
},
Index {
records: Vec<u8>,
},
}Variants§
Park
Done
Tombstone
Delta
A suspended run parked again: the records appended since prev, the
run’s previous frame, which holds the rest of its journal.
Fields
Index
Part of the run table’s persisted index: crate::table::RECORD-byte
records (see crate::table::Entry::record).
Implementations§
§impl StoreEntry
impl StoreEntry
pub fn chain_bytes(&self, frame_len: u32) -> u64
pub fn chain_bytes(&self, frame_len: u32) -> u64
Bytes of the run’s frames this entry keeps in use, given its own frame length.
§impl StoreEntry
impl StoreEntry
pub fn as_entry_ref(&self) -> EntryRef<'_>
Trait Implementations§
§impl Clone for StoreEntry
impl Clone for StoreEntry
§fn clone(&self) -> StoreEntry
fn clone(&self) -> StoreEntry
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more§impl Debug for StoreEntry
impl Debug for StoreEntry
§impl PartialEq for StoreEntry
impl PartialEq for StoreEntry
impl Eq for StoreEntry
impl StructuralPartialEq for StoreEntry
Auto Trait Implementations§
impl Freeze for StoreEntry
impl RefUnwindSafe for StoreEntry
impl Send for StoreEntry
impl Sync for StoreEntry
impl Unpin for StoreEntry
impl UnsafeUnpin for StoreEntry
impl UnwindSafe for StoreEntry
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