Enum raft_consensus::message::RequestVoteResponse[][src]

pub enum RequestVoteResponse {
    StaleTerm(Term),
    InconsistentLog(Term),
    Granted(Term),
    AlreadyVoted(Term),
}

Response for Raft voting RPC

Variants

Methods

impl RequestVoteResponse
[src]

Trait Implementations

impl Clone for RequestVoteResponse
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for RequestVoteResponse
[src]

Formats the value using the given formatter. Read more

impl PartialEq for RequestVoteResponse
[src]

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

This method tests for !=.

impl From<RequestVoteResponse> for PeerMessage
[src]

Performs the conversion.

Auto Trait Implementations