openraft 0.10.0-alpha.18

Advanced Raft consensus
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/// Command kind is used to categorize commands.
///
/// Commands of different kinds can be parallelized.
#[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,
    /// Command handled by RaftCore main thread.
    Main,
    /// Respond to caller. Can be executed in parallel with other commands.
    Respond,
}