[][src]Struct sc_finality_grandpa::GrandpaParams

pub struct GrandpaParams<Block: BlockT, C, N, SC, VR> {
    pub config: Config,
    pub link: LinkHalf<Block, C, SC>,
    pub network: N,
    pub inherent_data_providers: InherentDataProviders,
    pub telemetry_on_connect: Option<UnboundedReceiver<()>>,
    pub voting_rule: VR,
    pub prometheus_registry: Option<Registry>,
}

Parameters used to run Grandpa.

Fields

config: Config

Configuration for the GRANDPA service.

link: LinkHalf<Block, C, SC>

A link to the block import worker.

network: N

The Network instance.

inherent_data_providers: InherentDataProviders

The inherent data providers.

telemetry_on_connect: Option<UnboundedReceiver<()>>

If supplied, can be used to hook on telemetry connection established events.

voting_rule: VR

A voting rule used to potentially restrict target votes.

prometheus_registry: Option<Registry>

The prometheus metrics registry.

Auto Trait Implementations

impl<Block, C, N, SC, VR> !RefUnwindSafe for GrandpaParams<Block, C, N, SC, VR>

impl<Block, C, N, SC, VR> Send for GrandpaParams<Block, C, N, SC, VR> where
    C: Send + Sync,
    N: Send,
    SC: Send,
    VR: Send,
    <Block as Block>::Hash: Send + Sync,
    <Block as Block>::Header: Header,
    <<Block as Block>::Header as Header>::Number: Send + Sync

impl<Block, C, N, SC, VR> Sync for GrandpaParams<Block, C, N, SC, VR> where
    C: Send + Sync,
    N: Sync,
    SC: Sync,
    VR: Sync,
    <Block as Block>::Hash: Send + Sync,
    <Block as Block>::Header: Header,
    <<Block as Block>::Header as Header>::Number: Send + Sync

impl<Block, C, N, SC, VR> Unpin for GrandpaParams<Block, C, N, SC, VR> where
    N: Unpin,
    SC: Unpin,
    VR: Unpin,
    <Block as Block>::Header: Header

impl<Block, C, N, SC, VR> !UnwindSafe for GrandpaParams<Block, C, N, SC, VR>

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, U> Into<U> for T where
    U: From<T>, 
[src]

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

fn from_ref(outer: &Outer) -> &T[src]

Get a reference to the inner from the outer.

fn from_mut(outer: &mut Outer) -> &mut T[src]

Get a mutable reference to the inner from the outer.

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> SaturatedConversion for T[src]

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>, 
[src]

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

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