Skip to main content

vote_encode_decision

Function vote_encode_decision 

Source
pub fn vote_encode_decision(
    voter_id: u64,
    candidate_id: u64,
    candidate_epoch: u32,
    last_epoch: u32,
) -> VoteEncodeDecision
Expand description

Reject values that would otherwise be clamped and alias another identity or epoch when encoded as Kafka int32 fields.

The one ensures pins both variants: Accept exactly when vote_fields_fit_int32 holds.