[][src]Struct sc_service::BuildNetworkParams

pub struct BuildNetworkParams<'a, TBl: BlockT, TExPool, TImpQu, TCl> {
    pub config: &'a Configuration,
    pub client: Arc<TCl>,
    pub transaction_pool: Arc<TExPool>,
    pub spawn_handle: SpawnTaskHandle,
    pub import_queue: TImpQu,
    pub on_demand: Option<Arc<OnDemand<TBl>>>,
    pub block_announce_validator_builder: Option<Box<dyn FnOnce(Arc<TCl>) -> Box<dyn BlockAnnounceValidator<TBl> + Send> + Send>>,
    pub finality_proof_request_builder: Option<BoxFinalityProofRequestBuilder<TBl>>,
    pub finality_proof_provider: Option<Arc<dyn FinalityProofProvider<TBl>>>,
}

Parameters to pass into build_network.

Fields

config: &'a Configuration

The service configuration.

client: Arc<TCl>

A shared client returned by new_full_parts/new_light_parts.

transaction_pool: Arc<TExPool>

A shared transaction pool.

spawn_handle: SpawnTaskHandle

A handle for spawning tasks.

import_queue: TImpQu

An import queue.

on_demand: Option<Arc<OnDemand<TBl>>>

An optional, shared data fetcher for light clients.

block_announce_validator_builder: Option<Box<dyn FnOnce(Arc<TCl>) -> Box<dyn BlockAnnounceValidator<TBl> + Send> + Send>>

A block annouce validator builder.

finality_proof_request_builder: Option<BoxFinalityProofRequestBuilder<TBl>>

An optional finality proof request builder.

finality_proof_provider: Option<Arc<dyn FinalityProofProvider<TBl>>>

An optional, shared finality proof request provider.

Auto Trait Implementations

impl<'a, TBl, TExPool, TImpQu, TCl> !RefUnwindSafe for BuildNetworkParams<'a, TBl, TExPool, TImpQu, TCl>

impl<'a, TBl, TExPool, TImpQu, TCl> !Send for BuildNetworkParams<'a, TBl, TExPool, TImpQu, TCl>

impl<'a, TBl, TExPool, TImpQu, TCl> !Sync for BuildNetworkParams<'a, TBl, TExPool, TImpQu, TCl>

impl<'a, TBl, TExPool, TImpQu, TCl> Unpin for BuildNetworkParams<'a, TBl, TExPool, TImpQu, TCl> where
    TImpQu: Unpin

impl<'a, TBl, TExPool, TImpQu, TCl> !UnwindSafe for BuildNetworkParams<'a, TBl, TExPool, TImpQu, TCl>

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> Erased for T

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>,