Enum crdts::map::CvRDTValidation[][src]

pub enum CvRDTValidation<K, V: CvRDT, A> {
    DoubleSpentDot {
        dot: Dot<A>,
        our_key: K,
        their_key: K,
    },
    Value(V::Validation),
}

The various validation errors that may occur when using a Map CRDT.

Variants

DoubleSpentDot

We’ve detected that two different members were inserted with the same dot. This can break associativity.

Fields of DoubleSpentDot

dot: Dot<A>

The dot that was double spent

our_key: K

Our member inserted with this dot

their_key: K

Their member inserted with this dot

Value(V::Validation)

There is a validation error in the nested CRDT.

Trait Implementations

impl<K: Debug, V: Debug + CvRDT, A: Debug> Debug for CvRDTValidation<K, V, A> where
    V::Validation: Debug
[src]

impl<K: Debug, V: CvRDT + Debug, A: Debug> Display for CvRDTValidation<K, V, A>[src]

impl<K: Eq, V: Eq + CvRDT, A: Eq> Eq for CvRDTValidation<K, V, A> where
    V::Validation: Eq
[src]

impl<K: Debug, V: CvRDT + Debug, A: Debug> Error for CvRDTValidation<K, V, A>[src]

impl<K: PartialEq, V: PartialEq + CvRDT, A: PartialEq> PartialEq<CvRDTValidation<K, V, A>> for CvRDTValidation<K, V, A> where
    V::Validation: PartialEq
[src]

impl<K, V: CvRDT, A> StructuralEq for CvRDTValidation<K, V, A>[src]

impl<K, V: CvRDT, A> StructuralPartialEq for CvRDTValidation<K, V, A>[src]

Auto Trait Implementations

impl<K, V, A> RefUnwindSafe for CvRDTValidation<K, V, A> where
    A: RefUnwindSafe,
    K: RefUnwindSafe,
    <V as CvRDT>::Validation: RefUnwindSafe

impl<K, V, A> Send for CvRDTValidation<K, V, A> where
    A: Send,
    K: Send,
    <V as CvRDT>::Validation: Send

impl<K, V, A> Sync for CvRDTValidation<K, V, A> where
    A: Sync,
    K: Sync,
    <V as CvRDT>::Validation: Sync

impl<K, V, A> Unpin for CvRDTValidation<K, V, A> where
    A: Unpin,
    K: Unpin,
    <V as CvRDT>::Validation: Unpin

impl<K, V, A> UnwindSafe for CvRDTValidation<K, V, A> where
    A: UnwindSafe,
    K: UnwindSafe,
    <V as CvRDT>::Validation: UnwindSafe

Blanket Implementations

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

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

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

impl<T> From<T> for T[src]

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

impl<T> ToString for T where
    T: Display + ?Sized
[src]

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,