openraft 0.9.22

Advanced Raft consensus
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/// Command kind is used to categorize commands.
///
/// Commands of the different kinds can be paralleled.
#[allow(dead_code)]
#[derive(Debug, Clone, Copy)]
#[derive(PartialEq, Eq)]
pub(crate) enum CommandKind {
    /// Log IO command
    Log,
    /// Network IO command
    Network,
    /// State machine IO command
    StateMachine,
    /// RaftCore main thread command
    Main,
}