braid_core/antimatter/
state.rs1use std::collections::HashMap;
2
3#[derive(Clone, Debug)]
4pub struct ConnectionState {
5 pub peer: Option<String>,
6 pub seq: u64,
7}
8
9#[derive(Clone, Debug)]
10pub struct AckmeState {
11 pub id: String,
12 pub origin: Option<String>, pub count: usize,
14 pub versions: HashMap<String, bool>,
15 pub seq: u64,
16 pub time: u64,
17 pub time2: Option<u64>,
18 pub orig_count: usize,
19 pub real_ackme: bool,
20 pub key: String,
21 pub cancelled: bool,
22}
23
24#[derive(Clone, Debug)]
25pub struct ParentSet {
26 pub members: HashMap<String, bool>,
27 pub done: bool,
28}
29
30#[derive(Clone, Debug)]
31pub struct ChildSet {
32 pub members: HashMap<String, bool>,
33}