pub struct TimestampedValue {
pub value: CSlice,
pub timestamp: CSlice,
}Expand description
A value read from a DB with user-defined timestamps, and the timestamp it carries.
Both halves are RocksDB allocations this owns, freed on drop. Read them as bytes
through AsRef<[u8]>.
The timestamp is the raw bytes RocksDB stored, in whatever width and encoding the
column family’s comparator defines, so it is only meaningful to code that knows
that comparator. RocksDB’s own comparator_with_u64_ts uses a little endian
u64.
Fields§
§value: CSliceThe value stored under the key.
timestamp: CSliceThe timestamp the value was written with.
Trait Implementations§
Auto Trait Implementations§
impl !Send for TimestampedValue
impl !Sync for TimestampedValue
impl Freeze for TimestampedValue
impl RefUnwindSafe for TimestampedValue
impl Unpin for TimestampedValue
impl UnsafeUnpin for TimestampedValue
impl UnwindSafe for TimestampedValue
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