Skip to main content

Crate kaya_raft

Crate kaya_raft 

Source

Structs§

AppendRequest
AppendEntries RPC — sent by the leader for heartbeats and log replication.
AppendResponse
AppendEntries RPC response.
ClusterConfiguration
A set of voting members.
ClusterMember
A voting member with network endpoints (replicated in config-change entries).
ConfigChangeRequest
Simple membership change request (prototype; full joint consensus later).
ConfigChangeResponse
Envelope
A directed message between two Raft nodes.
InstallSnapshotRequest
Sent by leader to install a snapshot on a follower that is far behind or is a new node (Raft §7).
InstallSnapshotResponse
LogEntry
A single entry in the Raft log.
LogIndex
Index into the Raft log. 1-based; LogIndex(0) means “no entry”.
MemLog
In-memory Raft log. Entries are 1-indexed (logical).
NodeId
Unique identity of a node within a Raft cluster.
RaftApplyCommand
A command committed by Raft that the storage engine should apply.
RaftConfig
Static configuration for a single Raft node.
RaftNode
A complete Raft state-machine node.
RaftStatus
Observable snapshot of a node’s state (no mutable access).
Term
Raft term number. Increases monotonically.
VoteRequest
RequestVote RPC — sent by a candidate to request a vote.
VoteResponse
RequestVote RPC response.

Enums§

ConfigChangePhase
Phase of a membership configuration change (joint consensus).
EffectiveConfig
Effective configuration during normal or joint-consensus operation.
Message
All messages exchanged between Raft nodes.
RaftCommand
A replicated command stored in the Raft log.
Role
Current role of a Raft node within a term.