[][src]Trait crdts::CvRDT

pub trait CvRDT {
    fn merge(&mut self, other: Self);
}

State based CRDT's replicate by transmitting the entire CRDT state.

Required methods

fn merge(&mut self, other: Self)

Merge the given CRDT into the current CRDT.

Loading content...

Implementors

impl<A: Actor> CvRDT for GCounter<A>[src]

impl<A: Actor> CvRDT for PNCounter<A>[src]

impl<A: Actor> CvRDT for VClock<A>[src]

impl<K: Key, V: Val<A>, A: Actor> CvRDT for Map<K, V, A>[src]

impl<M: Member, A: Actor> CvRDT for Orswot<M, A>[src]

fn merge(&mut self, other: Self)[src]

Merge combines another Orswot with this one.

impl<T: Ord + Clone> CvRDT for GSet<T>[src]

fn merge(&mut self, other: Self)[src]

Merges another GSet into this one.

Examples

use crdts::{GSet, CvRDT, CmRDT};
let (mut a, mut b) = (GSet::new(), GSet::new());
a.insert(1);
b.insert(2);
a.merge(b);
assert!(a.contains(&1));
assert!(a.contains(&2));

impl<V: Val, A: Actor> CvRDT for MVReg<V, A>[src]

Loading content...