openraft 0.10.0-alpha.18

Advanced Raft consensus
Documentation
1
2
3
4
5
6
7
8
9
10
use crate::RaftTypeConfig;
use crate::type_config::alias::VoteOf;

/// The local vote is greater than the received vote.
#[derive(Debug, Clone, PartialEq, Eq, thiserror::Error)]
#[cfg_attr(feature = "serde", derive(serde::Deserialize, serde::Serialize), serde(bound = ""))]
#[error("reject vote: local vote {higher} is >= the received vote")]
pub struct RejectVote<C: RaftTypeConfig> {
    pub higher: VoteOf<C>,
}