[−][src]Trait ron_crdt::crdt::CRDT
Operations common to all Conflict-free Replicated Datatypes modeled by RON.
Associated Types
type T
Rust type this CRDT can be mapped to.
Required methods
ⓘImportant traits for Frame<'a>fn new<'a>(obj: UUID) -> Frame<'a>
ⓘImportant traits for Frame<'a>
Returns the state Frame of a new, empty CRDT instance with UUID obj
.
fn reduce<'a>(state: Frame<'a>, updates: Vec<Frame<'a>>) -> Option<Frame<'a>>
Reduce state Frame state
and update Frames updates
to a new state Frame.
fn map<'a>(state: Frame<'a>) -> Option<Self::T>
Maps the state Frame state
to a Rust type.
Implementors
impl CRDT for LWW
[src]
type T = HashMap<UUID, Atom>
ⓘImportant traits for Frame<'a>fn new<'a>(obj: UUID) -> Frame<'a>
[src]
ⓘImportant traits for Frame<'a>