[][src]Enum tendermint_light_client::evidence::Evidence

pub enum Evidence {
    DuplicateVote(DuplicateVoteEvidence),
    ConflictingHeaders(Box<ConflictingHeadersEvidence, Global>),
    LightClientAttackEvidence,
}

Evidence of malfeasance by validators (i.e. signing conflicting votes). encoded using an Amino prefix. There is currently only a single type of evidence: DuplicateVoteEvidence.

https://github.com/tendermint/spec/blob/d46cd7f573a2c6a2399fcab2cde981330aa63f37/spec/core/data_structures.md#evidence

Variants

DuplicateVote(DuplicateVoteEvidence)

Duplicate vote evidence

ConflictingHeaders(Box<ConflictingHeadersEvidence, Global>)

Conflicting headers evidence - Todo: this is not implemented in protobuf, it's ignored now

LightClientAttackEvidence

LightClient attack evidence - Todo: Implement details

Trait Implementations

impl Clone for Evidence[src]

impl Debug for Evidence[src]

impl<'de> Deserialize<'de> for Evidence[src]

impl PartialEq<Evidence> for Evidence[src]

impl Serialize for Evidence[src]

impl StructuralPartialEq for Evidence[src]

impl TryFrom<Evidence> for Evidence[src]

type Error = Box<dyn Error + 'static + Send + Sync, Global>

The type returned in the event of a conversion error.

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Pointable for T

type Init = T

The type for initializers.

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,