pub enum RequestVoteResponse {
StaleTerm(Term),
InconsistentLog(Term),
Granted(Term),
AlreadyVoted(Term),
}
Expand description
Response for Raft voting RPC
Variants§
Implementations§
Source§impl RequestVoteResponse
impl RequestVoteResponse
pub fn voter_term(&self) -> Term
Trait Implementations§
Source§impl Clone for RequestVoteResponse
impl Clone for RequestVoteResponse
Source§fn clone(&self) -> RequestVoteResponse
fn clone(&self) -> RequestVoteResponse
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for RequestVoteResponse
impl Debug for RequestVoteResponse
Source§impl From<RequestVoteResponse> for PeerMessage
impl From<RequestVoteResponse> for PeerMessage
Source§fn from(msg: RequestVoteResponse) -> PeerMessage
fn from(msg: RequestVoteResponse) -> PeerMessage
Converts to this type from the input type.
Source§impl PartialEq for RequestVoteResponse
impl PartialEq for RequestVoteResponse
impl StructuralPartialEq for RequestVoteResponse
Auto Trait Implementations§
impl Freeze for RequestVoteResponse
impl RefUnwindSafe for RequestVoteResponse
impl Send for RequestVoteResponse
impl Sync for RequestVoteResponse
impl Unpin for RequestVoteResponse
impl UnwindSafe for RequestVoteResponse
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more