pub trait ElectionPolicy {
fn potential_leader_score(
&self,
replica_status: &ReplicaStatus,
leader: &ReplicaStatus
) -> ElectionScoring;
}
Required Methods
fn potential_leader_score(
&self,
replica_status: &ReplicaStatus,
leader: &ReplicaStatus
) -> ElectionScoring
fn potential_leader_score(
&self,
replica_status: &ReplicaStatus,
leader: &ReplicaStatus
) -> ElectionScoring
compute potential leade score against leader