1 2 3 4 5 6 7 8 9 10
use crate::NodeId; use crate::Vote; // TODO: remove it? /// APIs to get vote. #[allow(dead_code)] pub(crate) trait VoteStateReader<NID: NodeId> { /// Get a reference to the current vote. fn vote_ref(&self) -> &Vote<NID>; }