[][src]Struct ron_crdt::LWW

pub struct LWW;

An LWW is an associated map from UUIDs to Atoms.

Conflicting writes are merge by using the Op event timestamp. The last writes wins.

Methods

impl LWW[src]

pub fn set<'a>(state: &Frame<'a>, key: UUID, value: Atom) -> Option<Frame<'a>>[src]

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

Trait Implementations

impl CRDT for LWW[src]

type T = HashMap<UUID, Atom>

Rust type this CRDT can be mapped to.

Auto Trait Implementations

impl Send for LWW

impl Sync for LWW

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]