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

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

Associated Types

Loading content...

Required methods

pub fn new(actor: A) -> Self[src]

initialize a new replica of this datatype

pub fn validate(
    &self,
    source: &A,
    op: &Self::Op
) -> Result<(), Self::ValidationError>
[src]

Protection against Byzantines

pub fn apply(&mut self, op: Self::Op)[src]

Executed once an op has been validated

Loading content...

Implementors

Loading content...