Enum crdts::orswot::Validation[][src]

pub enum Validation<M, A> {
    DoubleSpentDot {
        dot: Dot<A>,
        our_member: M,
        their_member: M,
    },
}

The variations that an ORSWOT may fail validation.

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_member: M

Our member inserted with this dot

their_member: M

Their member inserted with this dot

Trait Implementations

impl<M: Debug, A: Debug> Debug for Validation<M, A>[src]

impl<M: Debug, A: Debug> Display for Validation<M, A>[src]

impl<M: Eq, A: Eq> Eq for Validation<M, A>[src]

impl<M: Debug, A: Debug> Error for Validation<M, A>[src]

impl<M: PartialEq, A: PartialEq> PartialEq<Validation<M, A>> for Validation<M, A>[src]

impl<M, A> StructuralEq for Validation<M, A>[src]

impl<M, A> StructuralPartialEq for Validation<M, A>[src]

Auto Trait Implementations

impl<M, A> RefUnwindSafe for Validation<M, A> where
    A: RefUnwindSafe,
    M: RefUnwindSafe

impl<M, A> Send for Validation<M, A> where
    A: Send,
    M: Send

impl<M, A> Sync for Validation<M, A> where
    A: Sync,
    M: Sync

impl<M, A> Unpin for Validation<M, A> where
    A: Unpin,
    M: Unpin

impl<M, A> UnwindSafe for Validation<M, A> where
    A: UnwindSafe,
    M: 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>,