pub enum Evidence {
DuplicateVote(Box<DuplicateVoteEvidence>),
LightClientAttack(Box<LightClientAttackEvidence>),
}Expand description
Evidence of malfeasance by validators (i.e. signing conflicting votes or light client attack).
Variants§
DuplicateVote(Box<DuplicateVoteEvidence>)
Duplicate vote evidence
LightClientAttack(Box<LightClientAttackEvidence>)
LightClient attack evidence
Trait Implementations§
Source§impl From<DuplicateVoteEvidence> for Evidence
impl From<DuplicateVoteEvidence> for Evidence
Source§fn from(ev: DuplicateVoteEvidence) -> Evidence
fn from(ev: DuplicateVoteEvidence) -> Evidence
Converts to this type from the input type.
Source§impl From<LightClientAttackEvidence> for Evidence
impl From<LightClientAttackEvidence> for Evidence
Source§fn from(ev: LightClientAttackEvidence) -> Evidence
fn from(ev: LightClientAttackEvidence) -> Evidence
Converts to this type from the input type.
impl Eq for Evidence
impl StructuralPartialEq for Evidence
Auto Trait Implementations§
impl Freeze for Evidence
impl RefUnwindSafe for Evidence
impl Send for Evidence
impl Sync for Evidence
impl Unpin for Evidence
impl UnwindSafe for Evidence
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.