pub struct Hlc {
pub physical: u64,
pub logical: u32,
pub node_id: u32,
}Expand description
Hybrid Logical Clock stamp — physical time plus a logical tiebreaker and node id.
Fields§
§physical: u64Physical time component (milliseconds since the Unix epoch).
logical: u32Logical counter, incremented for events sharing a physical tick.
node_id: u32Originating node id, breaking ties across nodes.
Trait Implementations§
impl Copy for Hlc
impl Eq for Hlc
impl StructuralPartialEq for Hlc
Auto Trait Implementations§
impl Freeze for Hlc
impl RefUnwindSafe for Hlc
impl Send for Hlc
impl Sync for Hlc
impl Unpin for Hlc
impl UnsafeUnpin for Hlc
impl UnwindSafe for Hlc
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.