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
type ValidationError: Debug + Error + 'static
[src]
type ValidationError: Debug + Error + 'static
[src]A validation error specific to this data type.
Required methods
Protection against Byzantines Validate any incoming operations, here you must perform your byzantine fault tolerance checks specific to your algorithm