Skip to main content

ConsensusNotify

Trait ConsensusNotify 

Source
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§

Source

fn value_externalized(&self, slot_index: SlotIndex, value: &SCPValue)

Source

fn started_ballot_proto(&self, slot_index: SlotIndex, ballot: &SCPBallot)

Source

fn accepted_ballot_prepared(&self, slot_index: SlotIndex, ballot: &SCPBallot)

Source

fn confirmed_ballot_prepared(&self, slot_index: SlotIndex, ballot: &SCPBallot)

Source

fn accepted_commit(&self, slot_index: SlotIndex, ballot: &SCPBallot)

Source

fn ballot_did_hear_from_quorum(&self, slot_index: SlotIndex, ballot: &SCPBallot)

Source

fn nominating_value(&self, slot_index: SlotIndex, value: &SCPValue)

Source

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".

Implementors§