pub struct Snapshot { /* private fields */ }Expand description
A frozen, consistent point-in-time view of the whole store.
Implementations§
Source§impl Snapshot
impl Snapshot
Sourcepub fn each_prefix<F: FnMut(&[u8], &Value, Option<u64>)>(
&self,
prefix: &[u8],
f: F,
)
pub fn each_prefix<F: FnMut(&[u8], &Value, Option<u64>)>( &self, prefix: &[u8], f: F, )
Visit every entry under prefix as (key, value, ttl_ms) —
the raw kevy_store::Value borrow, for callers that want the
typed payload without copies.
Sourcepub fn keys_prefix(&self, prefix: &[u8]) -> Vec<SnapshotEntry>
pub fn keys_prefix(&self, prefix: &[u8]) -> Vec<SnapshotEntry>
Collect the keys (+ TTLs) under prefix, unordered across
shards.
Auto Trait Implementations§
impl Freeze for Snapshot
impl RefUnwindSafe for Snapshot
impl Send for Snapshot
impl Sync for Snapshot
impl Unpin for Snapshot
impl UnsafeUnpin for Snapshot
impl UnwindSafe for Snapshot
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