[][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<H, N> From<CommitValidationResult<H, N>> for BadCommit[src]

impl Clone for BadCommit[src]

impl Eq for BadCommit[src]

impl PartialEq<BadCommit> for BadCommit[src]

impl Debug for BadCommit[src]

impl StructuralPartialEq for BadCommit[src]

impl StructuralEq for BadCommit[src]

Auto Trait Implementations

Blanket Implementations

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

impl<T> From<T> for T[src]

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

type Owned = T

The resulting type after obtaining ownership.

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

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> 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> Borrow<T> for T where
    T: ?Sized
[src]

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

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