Struct pallet_babe::EquivocationHandler[][src]

pub struct EquivocationHandler<I, R, L> { /* fields omitted */ }

Generic equivocation handler. This type implements HandleEquivocation using existing subsystems that are part of frame (type bounds described below) and will dispatch to them directly, it's only purpose is to wire all subsystems together.

Trait Implementations

impl<I, R, L> Default for EquivocationHandler<I, R, L>[src]

impl<T, R, L> HandleEquivocation<T> for EquivocationHandler<T::KeyOwnerIdentification, R, L> where
    T: Config + Config + SendTransactionTypes<Call<T>>,
    R: ReportOffence<T::AccountId, T::KeyOwnerIdentification, BabeEquivocationOffence<T::KeyOwnerIdentification>>,
    L: Get<u64>, 
[src]

type ReportLongevity = L

The longevity, in blocks, that the equivocation report is valid for. When using the staking pallet this should be equal to the bonding duration (in blocks, not eras). Read more

Auto Trait Implementations

impl<I, R, L> RefUnwindSafe for EquivocationHandler<I, R, L> where
    I: RefUnwindSafe,
    L: RefUnwindSafe,
    R: RefUnwindSafe
[src]

impl<I, R, L> Send for EquivocationHandler<I, R, L> where
    I: Send,
    L: Send,
    R: Send
[src]

impl<I, R, L> Sync for EquivocationHandler<I, R, L> where
    I: Sync,
    L: Sync,
    R: Sync
[src]

impl<I, R, L> Unpin for EquivocationHandler<I, R, L> where
    I: Unpin,
    L: Unpin,
    R: Unpin
[src]

impl<I, R, L> UnwindSafe for EquivocationHandler<I, R, L> where
    I: UnwindSafe,
    L: UnwindSafe,
    R: UnwindSafe
[src]

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> CheckedConversion for T[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> IsType<T> for T[src]

impl<T, Outer> IsWrappedBy<Outer> for T where
    T: From<Outer>,
    Outer: AsRef<T> + AsMut<T> + From<T>, 

pub fn from_ref(outer: &Outer) -> &T

Get a reference to the inner from the outer.

pub fn from_mut(outer: &mut Outer) -> &mut T

Get a mutable reference to the inner from the outer.

impl<T> MaybeRefUnwindSafe for T where
    T: RefUnwindSafe

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> SaturatedConversion for T

impl<SS, SP> SupersetOf<SS> for SP where
    SS: SubsetOf<SP>, 

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

impl<S, T> UncheckedInto<T> for S where
    T: UncheckedFrom<S>, 

impl<T, S> UniqueSaturatedInto<T> for S where
    T: Bounded,
    S: TryInto<T>, 

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,