pub const fn increment(self) -> Option<Self> {
        match self {
            Self::Reject => None,
            Self::NewRound => Some(Self::Propose),
            Self::Propose => Some(Self::Prevote),
            Self::Prevote => Some(Self::Precommit),
            Self::Precommit => Some(Self::Commit),
            Self::Commit => None,
        }
    }
/// Increment the current step to the next one of the consensus flow.
Increment the current step to the next one of the consensus flow.
Increment the current step to the next one of the consensus flow .
pub const fn increment(self) -> Option<Self> {
        match self {
            Self::Reject => None,
            Self::NewRound => Some(Self::Propose),
            Self::Propose => Some(Self::Prevote),
            Self::Prevote => Some(Self::Precommit),
            Self::Precommit => Some(Self::Commit),
            Self::Commit => None,
        }
    }
pub const fn increment ( self ) -> Option < Self > { match self { Self :: Reject => None , Self :: NewRound => Some ( Self :: Propose ) , Self :: Propose => Some ( Self :: Prevote ) , Self :: Prevote => Some ( Self :: Precommit ) , Self :: Precommit => Some ( Self :: Commit ) , Self :: Commit => None , } }
Increment the current step to the next one of the consensus flow.
Increment the current step to the next one of the consensus flow .
self
self