openraft 0.10.1

Advanced Raft consensus
Documentation
1
2
3
4
5
6
7
8
9
10
11
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> {
    /// The vote of the rejecting node, which is greater than or equal to the received vote.
    pub higher: VoteOf<C>,
}