Struct sc_finality_grandpa::GrandpaParams[][src]

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<TracingUnboundedReceiver<()>>,
    pub voting_rule: VR,
    pub prometheus_registry: Option<Registry>,
    pub shared_voter_state: SharedVoterState,
}

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<TracingUnboundedReceiver<()>>

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.

shared_voter_state: SharedVoterState

The voter state is exposed at an RPC endpoint.

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

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

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

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> Instrument for T[src]

impl<T> Instrument for T[src]

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

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

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

Get a reference to the inner from the outer.

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

Get a mutable reference to the inner from the outer.

impl<T> Pointable for T[src]

type Init = T

The type for initializers.

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

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
    T: Bounded,
    S: TryInto<T>, 
[src]

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]