pub struct SnapshotEntry {
pub key: Vec<u8>,
pub ttl_ms: Option<u64>,
}Expand description
One entry from Snapshot::each_prefix / Snapshot::keys_prefix.
Fields§
§key: Vec<u8>The key.
ttl_ms: Option<u64>Remaining TTL in ms at freeze time (None = no expiry).
Trait Implementations§
Source§impl Clone for SnapshotEntry
impl Clone for SnapshotEntry
Source§fn clone(&self) -> SnapshotEntry
fn clone(&self) -> SnapshotEntry
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 SnapshotEntry
impl Debug for SnapshotEntry
impl Eq for SnapshotEntry
Source§impl PartialEq for SnapshotEntry
impl PartialEq for SnapshotEntry
impl StructuralPartialEq for SnapshotEntry
Auto Trait Implementations§
impl Freeze for SnapshotEntry
impl RefUnwindSafe for SnapshotEntry
impl Send for SnapshotEntry
impl Sync for SnapshotEntry
impl Unpin for SnapshotEntry
impl UnsafeUnpin for SnapshotEntry
impl UnwindSafe for SnapshotEntry
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