Struct raft_consensus::message::AppendEntriesRequest[][src]

pub struct AppendEntriesRequest {
    pub term: Term,
    pub prev_log_index: LogIndex,
    pub prev_log_term: Term,
    pub leader_commit: LogIndex,
    pub entries: Vec<Entry>,
}

Request for Raft AppendEntriesRPC

Fields

The leader's term.

Index of log entry immediately preceding new ones

Term of prevLogIndex entry

The Leader’s commit log index.

Log entries to store (empty for heartbeat; may send more than one for efficiency)

Trait Implementations

impl Clone for AppendEntriesRequest
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for AppendEntriesRequest
[src]

Formats the value using the given formatter. Read more

impl PartialEq for AppendEntriesRequest
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl From<AppendEntriesRequest> for PeerMessage
[src]

Performs the conversion.

Auto Trait Implementations