pub struct DefaultConflictFreeMerger;Expand description
Default conflict-free merger implementation.
Implements CRDT-style merging with support for:
- Last-Writer-Wins (LWW) strategy with timestamp comparison
- Multi-Value (MV) strategy preserving all concurrent values
- Custom merge functions for domain-specific resolution
- Configurable delete policies
§Example
use prolly::{DefaultConflictFreeMerger, CrdtConfig, MergeStrategy};
let merger = DefaultConflictFreeMerger::new();
let config = CrdtConfig::lww();
// Use with crdt_merge methodImplementations§
Trait Implementations§
Source§impl Clone for DefaultConflictFreeMerger
impl Clone for DefaultConflictFreeMerger
Source§fn clone(&self) -> DefaultConflictFreeMerger
fn clone(&self) -> DefaultConflictFreeMerger
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<S: Store> ConflictFreeMerger<S> for DefaultConflictFreeMerger
impl<S: Store> ConflictFreeMerger<S> for DefaultConflictFreeMerger
impl Copy for DefaultConflictFreeMerger
Source§impl Debug for DefaultConflictFreeMerger
impl Debug for DefaultConflictFreeMerger
Source§impl Default for DefaultConflictFreeMerger
impl Default for DefaultConflictFreeMerger
Source§fn default() -> DefaultConflictFreeMerger
fn default() -> DefaultConflictFreeMerger
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for DefaultConflictFreeMerger
impl RefUnwindSafe for DefaultConflictFreeMerger
impl Send for DefaultConflictFreeMerger
impl Sync for DefaultConflictFreeMerger
impl Unpin for DefaultConflictFreeMerger
impl UnsafeUnpin for DefaultConflictFreeMerger
impl UnwindSafe for DefaultConflictFreeMerger
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<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more