[][src]Trait crdts::FunkyCmRDT

pub trait FunkyCmRDT {
    type Error: Debug;
    type Op: Debug + Clone;
    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: Debug

User chosen error type

type Op: Debug + Clone

Same Op laws from non-funky CmRDT above

Loading content...

Required methods

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

Apply an Op to the CRDT

Loading content...

Implementors

impl<V: Val, M: Marker> FunkyCmRDT for LWWReg<V, M>[src]

type Error = Error

type Op = Self

Loading content...