Skip to main content

Module core

Module core 

Source
Expand description

RaftNode struct, constructors, simple accessors, tick, and propose.

Membership mutation (add/remove voter, add/remove/promote learner) lives in super::membership. State transitions (election, become_leader, replication) live in [super::internal]. RPC handlers live in super::rpc.

Structs§

RaftNode
A single Raft group’s state machine.
Ready
Output actions produced by a tick or RPC handler.