pub struct RequestVoteResponse {
pub term: Term,
pub vote_granted: bool,
}Expand description
Response to a vote request
Fields§
§term: TermCurrent term, for candidate to update itself
vote_granted: boolTrue if candidate received vote
Implementations§
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 PartialEq for RequestVoteResponse
impl PartialEq for RequestVoteResponse
impl Eq 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