Struct finality_grandpa::Equivocation
source · pub struct Equivocation<Id, V, S> {
pub round_number: u64,
pub identity: Id,
pub first: (V, S),
pub second: (V, S),
}
Expand description
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
sourceimpl<Id: Clone, V: Clone, S: Clone> Clone for Equivocation<Id, V, S>
impl<Id: Clone, V: Clone, S: Clone> Clone for Equivocation<Id, V, S>
sourcefn clone(&self) -> Equivocation<Id, V, S>
fn clone(&self) -> Equivocation<Id, V, S>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl<Id: PartialEq, V: PartialEq, S: PartialEq> PartialEq<Equivocation<Id, V, S>> for Equivocation<Id, V, S>
impl<Id: PartialEq, V: PartialEq, S: PartialEq> PartialEq<Equivocation<Id, V, S>> for Equivocation<Id, V, S>
sourcefn eq(&self, other: &Equivocation<Id, V, S>) -> bool
fn eq(&self, other: &Equivocation<Id, V, S>) -> bool
impl<Id, V, S> StructuralPartialEq for Equivocation<Id, V, S>
Auto Trait Implementations
impl<Id, V, S> RefUnwindSafe for Equivocation<Id, V, S>where
Id: RefUnwindSafe,
S: RefUnwindSafe,
V: RefUnwindSafe,
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> Unpin for Equivocation<Id, V, S>where
Id: Unpin,
S: Unpin,
V: Unpin,
impl<Id, V, S> UnwindSafe for Equivocation<Id, V, S>where
Id: UnwindSafe,
S: UnwindSafe,
V: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more