Struct finality_grandpa::voter::BadCommit [−][src]
The result of processing for a bad commit
Implementations
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]
impl Debug 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 PartialEq<BadCommit> for BadCommit
[src]
impl StructuralEq for BadCommit
[src]
impl StructuralPartialEq for BadCommit
[src]
Auto Trait Implementations
impl RefUnwindSafe for BadCommit
impl Send for BadCommit
impl Sync for BadCommit
impl Unpin for BadCommit
impl UnwindSafe for BadCommit
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>,