pub struct BadCommit { /* private fields */ }
Expand description
The result of processing for a bad commit
Implementations§
Source§impl 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§
Source§impl From<CommitValidationResult> for BadCommit
impl From<CommitValidationResult> for BadCommit
Source§fn from(r: CommitValidationResult) -> Self
fn from(r: CommitValidationResult) -> Self
Converts to this type from the input type.
impl Eq for BadCommit
impl StructuralPartialEq for BadCommit
Auto Trait Implementations§
impl Freeze for BadCommit
impl RefUnwindSafe for BadCommit
impl Send for BadCommit
impl Sync for BadCommit
impl Unpin for BadCommit
impl UnwindSafe for BadCommit
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more