Struct finality_grandpa::Equivocation [−][src]
pub struct Equivocation<Id, V, S> { pub round_number: u64, pub identity: Id, pub first: (V, S), pub second: (V, S), }
An equivocation (double-vote) in a given round.
Fields
round_number: u64
The round number equivocated in.
identity: Id
The identity of the equivocator.
first: (V, S)
The first vote in the equivocation.
second: (V, S)
The second vote in the equivocation.
Trait Implementations
impl<Id: Debug, V: Debug, S: Debug> Debug for Equivocation<Id, V, S>
[src]
impl<Id: Debug, V: Debug, S: Debug> Debug for Equivocation<Id, V, S>
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl<Id: Clone, V: Clone, S: Clone> Clone for Equivocation<Id, V, S>
[src]
impl<Id: Clone, V: Clone, S: Clone> Clone for Equivocation<Id, V, S>
fn clone(&self) -> Equivocation<Id, V, S>
[src]
fn clone(&self) -> Equivocation<Id, V, S>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl<Id: PartialEq, V: PartialEq, S: PartialEq> PartialEq for Equivocation<Id, V, S>
[src]
impl<Id: PartialEq, V: PartialEq, S: PartialEq> PartialEq for Equivocation<Id, V, S>
fn eq(&self, other: &Equivocation<Id, V, S>) -> bool
[src]
fn eq(&self, other: &Equivocation<Id, V, S>) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Equivocation<Id, V, S>) -> bool
[src]
fn ne(&self, other: &Equivocation<Id, V, S>) -> bool
This method tests for !=
.
Auto Trait Implementations
impl<Id, V, S> Send for Equivocation<Id, V, S> where
Id: Send,
S: Send,
V: Send,
impl<Id, V, S> Send for Equivocation<Id, V, S> where
Id: Send,
S: Send,
V: Send,
impl<Id, V, S> Sync for Equivocation<Id, V, S> where
Id: Sync,
S: Sync,
V: Sync,
impl<Id, V, S> Sync for Equivocation<Id, V, S> where
Id: Sync,
S: Sync,
V: Sync,