Enum raft_consensus::message::RequestVoteResponse [−][src]
pub enum RequestVoteResponse { StaleTerm(Term), InconsistentLog(Term), Granted(Term), AlreadyVoted(Term), }
Response for Raft voting RPC
Variants
StaleTerm(Term)
InconsistentLog(Term)
Granted(Term)
AlreadyVoted(Term)
Methods
impl RequestVoteResponse
[src]
impl RequestVoteResponse
pub fn voter_term(&self) -> Term
[src]
pub fn voter_term(&self) -> Term
Trait Implementations
impl Clone for RequestVoteResponse
[src]
impl Clone for RequestVoteResponse
fn clone(&self) -> RequestVoteResponse
[src]
fn clone(&self) -> RequestVoteResponse
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 RequestVoteResponse
[src]
impl Debug for RequestVoteResponse
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 RequestVoteResponse
[src]
impl PartialEq for RequestVoteResponse
fn eq(&self, other: &RequestVoteResponse) -> bool
[src]
fn eq(&self, other: &RequestVoteResponse) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &RequestVoteResponse) -> bool
[src]
fn ne(&self, other: &RequestVoteResponse) -> bool
This method tests for !=
.
impl From<RequestVoteResponse> for PeerMessage
[src]
impl From<RequestVoteResponse> for PeerMessage
fn from(msg: RequestVoteResponse) -> PeerMessage
[src]
fn from(msg: RequestVoteResponse) -> PeerMessage
Performs the conversion.
Auto Trait Implementations
impl Send for RequestVoteResponse
impl Send for RequestVoteResponse
impl Sync for RequestVoteResponse
impl Sync for RequestVoteResponse