openraft 0.10.0-alpha.18

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

// TODO: remove it?
/// APIs to get vote.
#[allow(dead_code)]
pub(crate) trait VoteStateReader<C>
where C: RaftTypeConfig
{
    /// Get a reference to the current vote.
    fn vote_ref(&self) -> &VoteOf<C>;
}