pub struct RequestVoteRequest {
pub term: Term,
pub candidate_id: NodeId,
pub last_log_index: LogIndex,
pub last_log_term: Term,
}Expand description
RequestVote RPC request
Invoked by candidates to gather votes
Fields§
§term: TermCandidate’s term
candidate_id: NodeIdCandidate requesting vote
last_log_index: LogIndexIndex of candidate’s last log entry
last_log_term: TermTerm of candidate’s last log entry
Implementations§
Source§impl RequestVoteRequest
impl RequestVoteRequest
Trait Implementations§
Source§impl Clone for RequestVoteRequest
impl Clone for RequestVoteRequest
Source§fn clone(&self) -> RequestVoteRequest
fn clone(&self) -> RequestVoteRequest
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 RequestVoteRequest
impl Debug for RequestVoteRequest
Source§impl<'de> Deserialize<'de> for RequestVoteRequest
impl<'de> Deserialize<'de> for RequestVoteRequest
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for RequestVoteRequest
impl RefUnwindSafe for RequestVoteRequest
impl Send for RequestVoteRequest
impl Sync for RequestVoteRequest
impl Unpin for RequestVoteRequest
impl UnwindSafe for RequestVoteRequest
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