Skip to main content

CrdtMerge

Trait CrdtMerge 

Source
pub trait CrdtMerge: Clone + Sealed {
    // Required method
    fn merge(&mut self, other: &Self);
}
Expand description

Convergent replicated data type merge semantics.

Mirrors Akka.DistributedData’s IReplicatedData.Merge.

Sealed as part of Phase 13 (idiomatic-rust sweep): only the CRDTs in this crate may implement CrdtMerge directly. Downstream users compose CRDTs via ORMap<K, V> / LWWMap<K, V> (where the value is a CRDT) or wrap them in domain-specific structs.

Required Methods§

Source

fn merge(&mut self, other: &Self)

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§