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>

source§

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)

Performs copy-assignment from source. Read more
source§

impl<Id: Debug, V: Debug, S: Debug> Debug for Equivocation<Id, V, S>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<Id: PartialEq, V: PartialEq, S: PartialEq> PartialEq<Equivocation<Id, V, S>> for Equivocation<Id, V, S>

source§

fn eq(&self, other: &Equivocation<Id, V, S>) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl<Id: Eq, V: Eq, S: Eq> Eq for Equivocation<Id, V, S>

source§

impl<Id, V, S> StructuralEq for Equivocation<Id, V, S>

source§

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§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for Twhere T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

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

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.