pub enum ConsensusCommand<V, A> {
StartHeight(u64, ValidatorSet<A>),
Propose(Proposal<V, A>),
Proposal(SignedProposal<V, A>),
Vote(SignedVote<V, A>),
}Expand description
Commands that the application can send into the consensus engine.
These commands represent the primary interface for interacting with the consensus engine. They allow the application to start new heights, submit proposals, and process votes.
Variants§
StartHeight(u64, ValidatorSet<A>)
Start consensus at a given height with the validator set.
Propose(Proposal<V, A>)
A complete, locally validated and signed proposal that we create as the proposer for the current round.
Proposal(SignedProposal<V, A>)
A complete, locally validated and signed proposal that was received over the network from another validator.
Vote(SignedVote<V, A>)
A signed vote received from the network.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<V, A> Freeze for ConsensusCommand<V, A>
impl<V, A> RefUnwindSafe for ConsensusCommand<V, A>where
V: RefUnwindSafe,
A: RefUnwindSafe,
impl<V, A> Send for ConsensusCommand<V, A>
impl<V, A> Sync for ConsensusCommand<V, A>
impl<V, A> Unpin for ConsensusCommand<V, A>
impl<V, A> UnwindSafe for ConsensusCommand<V, A>where
V: UnwindSafe,
A: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more