Trait garage_table::crdt::AutoCrdt[][src]

pub trait AutoCrdt: Ord + Clone + Debug {
    const WARN_IF_DIFFERENT: bool;
}
Expand description

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

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).

Implementations on Foreign Types

Implementors