pub struct AntiEntropySync {
pub nodes: HashMap<NodeId, TernaryNode>,
}Expand description
Anti-entropy synchronization for repairing state divergence between nodes.
Compares vector clocks to detect conflicts. If clocks are concurrent, applies a merge strategy. Otherwise, the lagging node adopts the leader’s state.
Fields§
§nodes: HashMap<NodeId, TernaryNode>Implementations§
Trait Implementations§
Source§impl Clone for AntiEntropySync
impl Clone for AntiEntropySync
Source§fn clone(&self) -> AntiEntropySync
fn clone(&self) -> AntiEntropySync
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for AntiEntropySync
impl RefUnwindSafe for AntiEntropySync
impl Send for AntiEntropySync
impl Sync for AntiEntropySync
impl Unpin for AntiEntropySync
impl UnsafeUnpin for AntiEntropySync
impl UnwindSafe for AntiEntropySync
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more