Struct finality_grandpa::voter::BadCommit
source · [−]pub struct BadCommit { /* private fields */ }
Expand description
The result of processing for a bad commit
Implementations
sourceimpl BadCommit
impl BadCommit
sourcepub fn num_precommits(&self) -> usize
pub fn num_precommits(&self) -> usize
Get the number of precommits
sourcepub fn num_duplicated(&self) -> usize
pub fn num_duplicated(&self) -> usize
Get the number of duplicated precommits
sourcepub fn num_equivocations(&self) -> usize
pub fn num_equivocations(&self) -> usize
Get the number of equivocations in the precommits
sourcepub fn num_invalid_voters(&self) -> usize
pub fn num_invalid_voters(&self) -> usize
Get the number of invalid voters in the precommits
Trait Implementations
sourceimpl<H, N> From<CommitValidationResult<H, N>> for BadCommit
impl<H, N> From<CommitValidationResult<H, N>> for BadCommit
sourcefn from(r: CommitValidationResult<H, N>) -> Self
fn from(r: CommitValidationResult<H, N>) -> Self
Performs the conversion.
impl Eq for BadCommit
impl StructuralEq for BadCommit
impl StructuralPartialEq for BadCommit
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more