[][src]Struct finality_grandpa::voter::BadCommit

pub struct BadCommit { /* fields omitted */ }

The result of processing for a bad commit

Methods

impl BadCommit[src]

pub fn num_precommits(&self) -> usize[src]

Get the number of precommits

pub fn num_duplicated(&self) -> usize[src]

Get the number of duplicated precommits

pub fn num_equivocations(&self) -> usize[src]

Get the number of equivocations in the precommits

pub fn num_invalid_voters(&self) -> usize[src]

Get the number of invalid voters in the precommits

Trait Implementations

impl Clone for BadCommit[src]

default fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl Eq for BadCommit[src]

impl PartialEq<BadCommit> for BadCommit[src]

impl<H, N> From<CommitValidationResult<H, N>> for BadCommit[src]

impl Debug for BadCommit[src]

Auto Trait Implementations

impl Send for BadCommit

impl Sync for BadCommit

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Erased for T