pub struct RecordVersion {
pub timestamp_ms: u64,
pub logical_counter: u64,
}Expand description
A totally ordered hybrid-clock timestamp.
timestamp_ms is physical Unix time; logical_counter distinguishes events
at that time without making a busy node’s physical clock run ahead. Record
ordering additionally uses writer identity and the tombstone tie-break bit.
Fields§
§timestamp_ms: u64§logical_counter: u64Implementations§
Trait Implementations§
Source§impl Clone for RecordVersion
impl Clone for RecordVersion
impl Copy for RecordVersion
Source§impl Debug for RecordVersion
impl Debug for RecordVersion
Source§impl Default for RecordVersion
impl Default for RecordVersion
impl Eq for RecordVersion
Source§impl From<u64> for RecordVersion
impl From<u64> for RecordVersion
Source§impl Hash for RecordVersion
impl Hash for RecordVersion
Source§impl Ord for RecordVersion
impl Ord for RecordVersion
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for RecordVersion
impl PartialEq for RecordVersion
Source§impl PartialOrd for RecordVersion
impl PartialOrd for RecordVersion
impl StructuralPartialEq for RecordVersion
Auto Trait Implementations§
impl Freeze for RecordVersion
impl RefUnwindSafe for RecordVersion
impl Send for RecordVersion
impl Sync for RecordVersion
impl Unpin for RecordVersion
impl UnsafeUnpin for RecordVersion
impl UnwindSafe for RecordVersion
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