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: LogIndex

The index of the next log entry to be sent to this peer.

match_idx: LogIndex

The 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: bool

Whether this node is currently probing to discover the correct match_idx for this peer.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.