[][src]Trait crdts::FunkyCmRDT

pub trait FunkyCmRDT {
    type Error;
    type Op;
    pub fn apply(&mut self, op: Self::Op) -> Result<(), Self::Error>;
}

Funky variant of the CmRDT trait.

This trait is for CvRDT's whose state space can't be easily encoded in rusts typesystem so we rely on runtime error checking. E.g. the unicity property of timestamp assumption in LWWReg

Associated Types

type Error[src]

User chosen error type

type Op[src]

Same Op laws from non-funky CmRDT above

Loading content...

Required methods

pub fn apply(&mut self, op: Self::Op) -> Result<(), Self::Error>[src]

Apply an Op to the CRDT

Loading content...

Implementors

impl<V: PartialEq, M: Ord> FunkyCmRDT for LWWReg<V, M>[src]

type Error = Error

type Op = Self

Loading content...