pub enum MergeResult {
Local,
Remote,
Equal,
}Expand description
Merge two CRDT entries for the same key.
Returns which side wins using LWW resolution: higher timestamp wins, NodeId tiebreaker. The entry kind (Put vs Tombstone) does NOT affect the merge - a tombstone with a higher timestamp defeats a put with a lower one.
Variants§
Trait Implementations§
Source§impl Clone for MergeResult
impl Clone for MergeResult
Source§fn clone(&self) -> MergeResult
fn clone(&self) -> MergeResult
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 moreimpl Copy for MergeResult
Source§impl Debug for MergeResult
impl Debug for MergeResult
impl Eq for MergeResult
Source§impl PartialEq for MergeResult
impl PartialEq for MergeResult
Source§fn eq(&self, other: &MergeResult) -> bool
fn eq(&self, other: &MergeResult) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for MergeResult
Auto Trait Implementations§
impl Freeze for MergeResult
impl RefUnwindSafe for MergeResult
impl Send for MergeResult
impl Sync for MergeResult
impl Unpin for MergeResult
impl UnsafeUnpin for MergeResult
impl UnwindSafe for MergeResult
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