pub struct BftConsensusResult {
pub round_id: RoundId,
pub value: VoteValue,
pub total_weight: u64,
pub participating_authorities: HashSet<AuthorityId>,
pub phase: ConsensusPhase,
}Expand description
BFT Consensus result
Fields§
§round_id: RoundId§value: VoteValue§total_weight: u64§phase: ConsensusPhaseTrait Implementations§
Source§impl Clone for BftConsensusResult
impl Clone for BftConsensusResult
Source§fn clone(&self) -> BftConsensusResult
fn clone(&self) -> BftConsensusResult
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 BftConsensusResult
impl Debug for BftConsensusResult
Source§impl<'de> Deserialize<'de> for BftConsensusResult
impl<'de> Deserialize<'de> for BftConsensusResult
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 BftConsensusResult
impl PartialEq for BftConsensusResult
Source§impl Serialize for BftConsensusResult
impl Serialize for BftConsensusResult
impl Eq for BftConsensusResult
impl StructuralPartialEq for BftConsensusResult
Auto Trait Implementations§
impl Freeze for BftConsensusResult
impl RefUnwindSafe for BftConsensusResult
impl Send for BftConsensusResult
impl Sync for BftConsensusResult
impl Unpin for BftConsensusResult
impl UnwindSafe for BftConsensusResult
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