pub struct LightClientAttackEvidence {
pub conflicting_block: ConflictingBlock,
pub common_height: Height,
pub byzantine_validators: Vec<Info>,
pub total_voting_power: Power,
pub timestamp: Time,
}Expand description
Light client attack evidence
Fields§
§conflicting_block: ConflictingBlock§common_height: Height§byzantine_validators: Vec<Info>§total_voting_power: Power§timestamp: TimeTrait Implementations§
Source§impl Clone for LightClientAttackEvidence
impl Clone for LightClientAttackEvidence
Source§fn clone(&self) -> LightClientAttackEvidence
fn clone(&self) -> LightClientAttackEvidence
Returns a duplicate 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 LightClientAttackEvidence
impl Debug for LightClientAttackEvidence
Source§impl<'de> Deserialize<'de> for LightClientAttackEvidence
impl<'de> Deserialize<'de> for LightClientAttackEvidence
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<LightClientAttackEvidence, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<LightClientAttackEvidence, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
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.
Source§impl Serialize for LightClientAttackEvidence
impl Serialize for LightClientAttackEvidence
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Source§impl TryFrom<LightClientAttackEvidence> for LightClientAttackEvidence
impl TryFrom<LightClientAttackEvidence> for LightClientAttackEvidence
Source§fn try_from(
ev: LightClientAttackEvidence,
) -> Result<LightClientAttackEvidence, <LightClientAttackEvidence as TryFrom<LightClientAttackEvidence>>::Error>
fn try_from( ev: LightClientAttackEvidence, ) -> Result<LightClientAttackEvidence, <LightClientAttackEvidence as TryFrom<LightClientAttackEvidence>>::Error>
Performs the conversion.
Source§impl TryFrom<LightClientAttackEvidence> for LightClientAttackEvidence
impl TryFrom<LightClientAttackEvidence> for LightClientAttackEvidence
Source§fn try_from(
ev: LightClientAttackEvidence,
) -> Result<LightClientAttackEvidence, <LightClientAttackEvidence as TryFrom<LightClientAttackEvidence>>::Error>
fn try_from( ev: LightClientAttackEvidence, ) -> Result<LightClientAttackEvidence, <LightClientAttackEvidence as TryFrom<LightClientAttackEvidence>>::Error>
Performs the conversion.
impl Eq for LightClientAttackEvidence
impl StructuralPartialEq for LightClientAttackEvidence
Auto Trait Implementations§
impl Freeze for LightClientAttackEvidence
impl RefUnwindSafe for LightClientAttackEvidence
impl Send for LightClientAttackEvidence
impl Sync for LightClientAttackEvidence
impl Unpin for LightClientAttackEvidence
impl UnwindSafe for LightClientAttackEvidence
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.