#[repr(i32)]pub enum MisbehaviorKind {
Unknown = 0,
DuplicateVote = 1,
LightClientAttack = 2,
}
Expand description
The possible kinds of Misbehavior
.
Note: the
ABCI documentation
calls this MisbehaviorType
, but we follow the Rust convention and name it MisbehaviorKind
to avoid confusion with Rust types.
Variants§
Unknown = 0
Unknown evidence type (proto default value).
DuplicateVote = 1
Evidence that the validator voted for two different blocks in the same round of the same height.
LightClientAttack = 2
Evidence that a validator attacked a light client.
Trait Implementations§
Source§impl Clone for MisbehaviorKind
impl Clone for MisbehaviorKind
Source§fn clone(&self) -> MisbehaviorKind
fn clone(&self) -> MisbehaviorKind
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for MisbehaviorKind
impl Debug for MisbehaviorKind
Source§impl Hash for MisbehaviorKind
impl Hash for MisbehaviorKind
Source§impl PartialEq for MisbehaviorKind
impl PartialEq for MisbehaviorKind
impl Copy for MisbehaviorKind
impl Eq for MisbehaviorKind
impl StructuralPartialEq for MisbehaviorKind
Auto Trait Implementations§
impl Freeze for MisbehaviorKind
impl RefUnwindSafe for MisbehaviorKind
impl Send for MisbehaviorKind
impl Sync for MisbehaviorKind
impl Unpin for MisbehaviorKind
impl UnwindSafe for MisbehaviorKind
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