Struct raft_consensus::message::RequestVoteRequest[][src]

pub struct RequestVoteRequest {
    pub term: Term,
    pub last_log_index: LogIndex,
    pub last_log_term: Term,
}

Request for Raft voting RPC

Fields

The candidate's term.

The index of the candidate's last log entry.

The term of the candidate's last log entry.

Trait Implementations

impl Clone for RequestVoteRequest
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for RequestVoteRequest
[src]

Formats the value using the given formatter. Read more

impl PartialEq for RequestVoteRequest
[src]

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

This method tests for !=.

impl From<RequestVoteRequest> for PeerMessage
[src]

Performs the conversion.

Auto Trait Implementations