pub struct OrderingKey {
pub epoch_id: EpochId,
pub workspace_id: WorkspaceId,
pub seq: u64,
pub wall_clock_ms: u64,
}Expand description
Composite ordering key for causal ordering of operations.
Ordering is determined by the authoritative triple (epoch_id, workspace_id, seq).
The wall_clock_ms field is informational only and excluded from ordering.
Fields§
§epoch_id: EpochIdThe epoch this operation belongs to.
workspace_id: WorkspaceIdThe workspace that produced this operation.
seq: u64Monotonically increasing sequence number within a workspace.
wall_clock_ms: u64Wall-clock milliseconds since Unix epoch (informational only). Clamped: never goes backward within a workspace.
Implementations§
Source§impl OrderingKey
impl OrderingKey
Trait Implementations§
Source§impl Clone for OrderingKey
impl Clone for OrderingKey
Source§fn clone(&self) -> OrderingKey
fn clone(&self) -> OrderingKey
Returns a duplicate of the value. Read more
1.0.0 · 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 OrderingKey
impl Debug for OrderingKey
Source§impl<'de> Deserialize<'de> for OrderingKey
impl<'de> Deserialize<'de> for OrderingKey
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for OrderingKey
impl Display for OrderingKey
Source§impl Ord for OrderingKey
impl Ord for OrderingKey
Source§impl PartialEq for OrderingKey
impl PartialEq for OrderingKey
Source§impl PartialOrd for OrderingKey
impl PartialOrd for OrderingKey
Source§impl Serialize for OrderingKey
impl Serialize for OrderingKey
impl Eq for OrderingKey
Auto Trait Implementations§
impl Freeze for OrderingKey
impl RefUnwindSafe for OrderingKey
impl Send for OrderingKey
impl Sync for OrderingKey
impl Unpin for OrderingKey
impl UnsafeUnpin for OrderingKey
impl UnwindSafe for OrderingKey
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> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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.