pub enum CausalOrder {
Before,
After,
Concurrent,
Equal,
}Expand description
The causal relationship between two vector clocks.
Variants§
Before
a happened-before b (a is strictly older)
After
b happened-before a (a is strictly newer)
Concurrent
Neither happened before the other — concurrent events
Equal
Identical clocks
Trait Implementations§
Source§impl Clone for CausalOrder
impl Clone for CausalOrder
Source§fn clone(&self) -> CausalOrder
fn clone(&self) -> CausalOrder
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 CausalOrder
impl Debug for CausalOrder
Source§impl PartialEq for CausalOrder
impl PartialEq for CausalOrder
Source§fn eq(&self, other: &CausalOrder) -> bool
fn eq(&self, other: &CausalOrder) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for CausalOrder
impl Eq for CausalOrder
impl StructuralPartialEq for CausalOrder
Auto Trait Implementations§
impl Freeze for CausalOrder
impl RefUnwindSafe for CausalOrder
impl Send for CausalOrder
impl Sync for CausalOrder
impl Unpin for CausalOrder
impl UnsafeUnpin for CausalOrder
impl UnwindSafe for CausalOrder
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