Trait brb::brb_data_type::BRBDataType [−][src]
The BRBDataType trait
Associated Types
type Op: Debug + Clone + Hash + Eq + Serialize
[src]
The set of ops this data type accepts
type ValidationError: Debug + Error + 'static
[src]
A validation error specific to this data type.
Required methods
fn new(actor: A) -> Self
[src]
initialize a new replica of this datatype
fn validate(
&self,
source: &A,
op: &Self::Op
) -> Result<(), Self::ValidationError>
[src]
&self,
source: &A,
op: &Self::Op
) -> Result<(), Self::ValidationError>
Protection against Byzantines Validate any incoming operations, here you must perform your byzantine fault tolerance checks specific to your algorithm
fn apply(&mut self, op: Self::Op)
[src]
Execute an op after it has been validated.