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
use crateRaftTypeConfig;
use crateStorageError;
use crateIOId;
use crateLogIdOf;
use crateWatchSenderOf;
/// The watch channels [`RaftCore`] broadcasts local IO progress on.
///
/// These are direct IO and replication progress signals. Storage reports each completed IO on
/// `completed`, and the replication tasks follow `accepted`, `submitted` and `committed` to
/// decide which entries they may read and send, and which commit to send. They are separate
/// from [`MetricsChannels`], which publishes snapshots of the node's state. Those snapshots are
/// not for reporting alone: a linearizable read waits on them for its read log id to be applied,
/// and a leader removed from the membership watches them to step down. Like any watch channel,
/// both may skip intermediate values.
///
/// [`RaftCore`]: crate::core::RaftCore
/// [`MetricsChannels`]: crate::core::MetricsChannels
pub