pub enum Step {
Unstarted,
Propose,
Prevote,
Precommit,
Commit,
}Expand description
The step of consensus in this round
Variants§
Unstarted
The round has not started yet
Propose
Propose step. Either we are the proposer or we are waiting for a proposal.
Prevote
We are at the prevote step.
Precommit
We are at the precommit step.
Commit
We have committed and decided on a value
Trait Implementations§
Source§impl Ord for Step
impl Ord for Step
Source§impl PartialOrd for Step
impl PartialOrd for Step
impl Copy for Step
impl Eq for Step
impl StructuralPartialEq for Step
Auto Trait Implementations§
impl Freeze for Step
impl RefUnwindSafe for Step
impl Send for Step
impl Sync for Step
impl Unpin for Step
impl UnsafeUnpin for Step
impl UnwindSafe for Step
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