pub trait CRDT {
type T;
fn new<'a>(obj: UUID) -> Frame<'a> ⓘ;
fn reduce<'a>(state: Frame<'a>, updates: Vec<Frame<'a>>) -> Option<Frame<'a>>;
fn map<'a>(state: Frame<'a>) -> Option<Self::T>;
}
Expand description
Operations common to all Conflict-free Replicated Datatypes modeled by RON.
Required Associated Types§
Required Methods§
sourcefn new<'a>(obj: UUID) -> Frame<'a> ⓘ
fn new<'a>(obj: UUID) -> Frame<'a> ⓘ
Returns the state Frame of a new, empty CRDT instance with UUID obj
.