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
term: Term
The candidate's term.
last_log_index: LogIndex
The index of the candidate's last log entry.
last_log_term: Term
The term of the candidate's last log entry.
Trait Implementations
impl Clone for RequestVoteRequest
[src]
impl Clone for RequestVoteRequest
fn clone(&self) -> RequestVoteRequest
[src]
fn clone(&self) -> RequestVoteRequest
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Debug for RequestVoteRequest
[src]
impl Debug for RequestVoteRequest
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl PartialEq for RequestVoteRequest
[src]
impl PartialEq for RequestVoteRequest
fn eq(&self, other: &RequestVoteRequest) -> bool
[src]
fn eq(&self, other: &RequestVoteRequest) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &RequestVoteRequest) -> bool
[src]
fn ne(&self, other: &RequestVoteRequest) -> bool
This method tests for !=
.
impl From<RequestVoteRequest> for PeerMessage
[src]
impl From<RequestVoteRequest> for PeerMessage
fn from(msg: RequestVoteRequest) -> PeerMessage
[src]
fn from(msg: RequestVoteRequest) -> PeerMessage
Performs the conversion.
Auto Trait Implementations
impl Send for RequestVoteRequest
impl Send for RequestVoteRequest
impl Sync for RequestVoteRequest
impl Sync for RequestVoteRequest