Trait garage_table::crdt::AutoCRDT[][src]

pub trait AutoCRDT: Ord + Clone + Debug {
    const WARN_IF_DIFFERENT: bool;
}

All types that implement Ord (a total order) can also implement a trivial CRDT defined by the merge rule: a ⊔ b = max(a, b). Implement this trait for your type to enable this behavior.

Associated Constants

const WARN_IF_DIFFERENT: bool[src]

WARN_IF_DIFFERENT: emit a warning when values differ. Set this to true if different values in your application should never happen. Set this to false if you are actually relying on the semantics of a ⊔ b = max(a, b).

Loading content...

Implementations on Foreign Types

impl AutoCRDT for String[src]

impl AutoCRDT for bool[src]

impl AutoCRDT for FixedBytes32[src]

Loading content...

Implementors

Loading content...