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§
Source§impl<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>
Source§fn clone(&self) -> Equivocation<Id, V, S>
fn clone(&self) -> Equivocation<Id, V, S>
Returns a copy 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 moreimpl<Id: Eq, V: Eq, S: Eq> Eq for Equivocation<Id, V, S>
impl<Id, V, S> StructuralPartialEq for Equivocation<Id, V, S>
Auto Trait Implementations§
impl<Id, V, S> Freeze for Equivocation<Id, V, S>
impl<Id, V, S> RefUnwindSafe for Equivocation<Id, V, S>
impl<Id, V, S> Send for Equivocation<Id, V, S>
impl<Id, V, S> Sync for Equivocation<Id, V, S>
impl<Id, V, S> Unpin for Equivocation<Id, V, S>
impl<Id, V, S> UnwindSafe for Equivocation<Id, V, S>
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<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more