pub struct SnapshotView { /* private fields */ }Expand description
A frozen, Send view of one store’s live entries at a single instant.
Implementations§
Source§impl SnapshotView
impl SnapshotView
Sourcepub fn each<F: FnMut(&[u8], &Value, Option<u64>)>(&self, f: F)
pub fn each<F: FnMut(&[u8], &Value, Option<u64>)>(&self, f: F)
Visit every entry as (key, &value, ttl_ms) — the same shape as
Store::snapshot_each, so serializers take either source.
Sourcepub fn each_hash_ttl<F: FnMut(&[u8], &[u8], u64)>(&self, f: F)
pub fn each_hash_ttl<F: FnMut(&[u8], &[u8], u64)>(&self, f: F)
Visit the frozen hash field TTLs.
Sourcepub fn materialize_cold(&self, key: &[u8], v: &Value) -> Option<Value>
pub fn materialize_cold(&self, key: &[u8], v: &Value) -> Option<Value>
Decode a cold stub’s record against the view’s pinned vlog files
into a fresh hot Value — the serializer-thread read path:
no store access, no promotion, memory bound = this one value.
None when v is hot. A stub naming an unpinned file, a failed
read, or a bad decode is a process bug (the vlog is per-boot and
this process pinned every file at collect time) — surfaced
loudly, never healed silently.
Sourcepub fn row_seg_files(&self) -> Vec<(u32, String)>
pub fn row_seg_files(&self) -> Vec<(u32, String)>
The frozen row segments’ (seq, file) identities.
Auto Trait Implementations§
impl Freeze for SnapshotView
impl RefUnwindSafe for SnapshotView
impl Send for SnapshotView
impl Sync for SnapshotView
impl Unpin for SnapshotView
impl UnsafeUnpin for SnapshotView
impl UnwindSafe for SnapshotView
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