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.

Required Associated Constants§

source

const WARN_IF_DIFFERENT: bool

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

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl AutoCrdt for ConsistencyMode

source§

impl AutoCrdt for bool

source§

impl AutoCrdt for String

source§

impl AutoCrdt for NodeRoleV

source§

impl AutoCrdt for LayoutParameters

Implementors§