Struct finality_grandpa::voter::report::RoundState [−][src]
Basic data struct for the state of a round.
Fields
total_weight: VoterWeight
Total weight of all votes.
threshold_weight: VoterWeight
The threshold voter weight.
prevote_current_weight: VoteWeight
Current weight of the prevotes.
prevote_ids: HashSet<Id>
The identities of nodes that have cast prevotes so far.
precommit_current_weight: VoteWeight
Current weight of the precommits.
precommit_ids: HashSet<Id>
The identities of nodes that have cast precommits so far.
Trait Implementations
impl<Id: Clone + Eq + Hash> Clone for RoundState<Id>
[src]
fn clone(&self) -> RoundState<Id>
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<Id: Eq + Hash> Eq for RoundState<Id>
[src]
impl<Id: PartialEq + Eq + Hash> PartialEq<RoundState<Id>> for RoundState<Id>
[src]
fn eq(&self, other: &RoundState<Id>) -> bool
[src]
fn ne(&self, other: &RoundState<Id>) -> bool
[src]
impl<Id: Eq + Hash> StructuralEq for RoundState<Id>
[src]
impl<Id: Eq + Hash> StructuralPartialEq for RoundState<Id>
[src]
Auto Trait Implementations
impl<Id> RefUnwindSafe for RoundState<Id> where
Id: RefUnwindSafe,
Id: RefUnwindSafe,
impl<Id> Send for RoundState<Id> where
Id: Send,
Id: Send,
impl<Id> Sync for RoundState<Id> where
Id: Sync,
Id: Sync,
impl<Id> Unpin for RoundState<Id> where
Id: Unpin,
Id: Unpin,
impl<Id> UnwindSafe for RoundState<Id> where
Id: UnwindSafe,
Id: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,