1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
//! What carries the messages between two replicas.
/// How long a message may be: 16 MiB.
pub const MAX_MESSAGE_LEN: usize = 16 * 1024 * 1024;
/// A connection between two replicas, which carries whole messages in order, and is
/// encrypted and bound to the two endpoints' keys ([Sync](../../../docs/spec/sync.md#1-connections)).
/// Why a connection failed.
;