[−][src]Module threshold::clock
This module contains an implementation of a vector clock.
The implementation is inspired in rust-crdt's implementation.
Examples
use threshold::*; let actor_a = "A"; let mut clock_a = VClock::new(); let mut clock_b = VClock::new(); clock_a.next_dot(&actor_a); let dot_a2 = clock_a.next_dot(&actor_a); clock_b.join(&clock_a); assert!(clock_b.is_element(&dot_a2));
Structs
Clock | |
Dot | |
IntoIter |
Functions
vclock_from_seqs | Creates a new vector clock from a list of sequences.
|
Type Definitions
AEClock | |
BEClock | |
VClock |