[−][src]Struct finality_grandpa::voter::BadCommit
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]
fn clone(&self) -> BadCommit
[src]
default fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl PartialEq<BadCommit> for BadCommit
[src]
impl Eq for BadCommit
[src]
impl<H, N> From<CommitValidationResult<H, N>> for BadCommit
[src]
fn from(r: CommitValidationResult<H, N>) -> Self
[src]
impl Debug for BadCommit
[src]
Auto Trait Implementations
Blanket Implementations
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From for T
[src]
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.