pub trait ConsensusNotify {
// Required methods
fn value_externalized(&self, slot_index: SlotIndex, value: &SCPValue);
fn started_ballot_proto(&self, slot_index: SlotIndex, ballot: &SCPBallot);
fn accepted_ballot_prepared(
&self,
slot_index: SlotIndex,
ballot: &SCPBallot,
);
fn confirmed_ballot_prepared(
&self,
slot_index: SlotIndex,
ballot: &SCPBallot,
);
fn accepted_commit(&self, slot_index: SlotIndex, ballot: &SCPBallot);
fn ballot_did_hear_from_quorum(
&self,
slot_index: SlotIndex,
ballot: &SCPBallot,
);
fn nominating_value(&self, slot_index: SlotIndex, value: &SCPValue);
fn updated_candidate_value(&self, slot_index: SlotIndex, value: &SCPValue);
}Required Methods§
fn value_externalized(&self, slot_index: SlotIndex, value: &SCPValue)
fn started_ballot_proto(&self, slot_index: SlotIndex, ballot: &SCPBallot)
fn accepted_ballot_prepared(&self, slot_index: SlotIndex, ballot: &SCPBallot)
fn confirmed_ballot_prepared(&self, slot_index: SlotIndex, ballot: &SCPBallot)
fn accepted_commit(&self, slot_index: SlotIndex, ballot: &SCPBallot)
fn ballot_did_hear_from_quorum(&self, slot_index: SlotIndex, ballot: &SCPBallot)
fn nominating_value(&self, slot_index: SlotIndex, value: &SCPValue)
fn updated_candidate_value(&self, slot_index: SlotIndex, value: &SCPValue)
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".