Struct simple_raft::core::ReplicationState [−][src]
pub struct ReplicationState {
pub next_idx: LogIndex,
pub match_idx: LogIndex,
pub inflight: Option<LogIndex>,
pub send_probe: bool,
// some fields omitted
}Expand description
The state of Raft log replication from a Raft node to one of its peers.
Fields
next_idx: LogIndexThe index of the next log entry to be sent to this peer.
match_idx: LogIndexThe index of the last log entry on this peer to up which the peer’s log is known to match this node’s log.
inflight: Option<LogIndex>The index of the last log entry sent to this peer but which has not yet been acknowledged by the peer.
send_probe: boolWhether this node is currently probing to discover the correct match_idx for this peer.