Trait brb::brb_data_type::BRBDataType[][src]

pub trait BRBDataType<A>: Debug {
    type Op: Debug + Clone + Hash + Eq + Serialize;
    type ValidationError: Debug + Error + 'static;
    fn new(actor: A) -> Self;
fn validate(
        &self,
        source: &A,
        op: &Self::Op
    ) -> Result<(), Self::ValidationError>;
fn apply(&mut self, op: Self::Op); }
Expand description

The BRBDataType trait

Associated Types

The set of ops this data type accepts

A validation error specific to this data type.

Required methods

initialize a new replica of this datatype

Protection against Byzantines Validate any incoming operations, here you must perform your byzantine fault tolerance checks specific to your algorithm

Execute an op after it has been validated.

Implementors