Struct ron_crdt::LWW

source ·
pub struct LWW;
Expand description

An LWW is an associated map from UUIDs to Atoms. Conflicting writes are merge by using the Op event timestamp. The last writes wins.

Implementations§

Sets key to value in LWW state. Returns the update Frame without modifing the state.

Trait Implementations§

Rust type this CRDT can be mapped to.
Returns the state Frame of a new, empty CRDT instance with UUID obj.
Reduce state Frame state and update Frames updates to a new state Frame.
Maps the state Frame state to a Rust type.

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.