Expand description

Raft-based election framework.

Structs

The election API.
Election persistent state.
Heartbeat request.
Heartbeat response.
A set of metrics describing the current state of election.
The metrics watcher of the node.
MoveLeader request.
The election runtime configurations.
The builder of election runtime configurations.
Vote request.
Vote response.

Enums

Error related to election.
The event of election.
Initial mode when initialize election.
The minimum number of votes that a node has to obtain in order to be the leader.
The state of the node.
Vote result.

Traits

A trait defining application specific data type for election.
The event handler of election.
Unique id used to identify the node.
RPC interfaces used by election.
Storage interfaces used by election.
Spawner for internal short-time task.
Thread used for election main thread.
Application specific data involved in voting.

Type Definitions

The result of election process.