pub enum ConsensusPhase {
Idle,
PrePrepare,
Prepare,
Commit,
Decided,
ViewChange,
}Expand description
Consensus phase in PBFT protocol
Variants§
Trait Implementations§
Source§impl Clone for ConsensusPhase
impl Clone for ConsensusPhase
Source§fn clone(&self) -> ConsensusPhase
fn clone(&self) -> ConsensusPhase
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ConsensusPhase
impl Debug for ConsensusPhase
Source§impl<'de> Deserialize<'de> for ConsensusPhase
impl<'de> Deserialize<'de> for ConsensusPhase
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ConsensusPhase
impl PartialEq for ConsensusPhase
Source§impl Serialize for ConsensusPhase
impl Serialize for ConsensusPhase
impl Copy for ConsensusPhase
impl Eq for ConsensusPhase
impl StructuralPartialEq for ConsensusPhase
Auto Trait Implementations§
impl Freeze for ConsensusPhase
impl RefUnwindSafe for ConsensusPhase
impl Send for ConsensusPhase
impl Sync for ConsensusPhase
impl Unpin for ConsensusPhase
impl UnwindSafe for ConsensusPhase
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