[][src]Struct sc_service::ServiceParams

pub struct ServiceParams<TBl: BlockT, TCl, TImpQu, TExPool, TRpc, Backend> {
    pub config: Configuration,
    pub client: Arc<TCl>,
    pub backend: Arc<Backend>,
    pub task_manager: TaskManager,
    pub keystore: Arc<RwLock<Keystore>>,
    pub on_demand: Option<Arc<OnDemand<TBl>>>,
    pub import_queue: TImpQu,
    pub finality_proof_request_builder: Option<BoxFinalityProofRequestBuilder<TBl>>,
    pub finality_proof_provider: Option<Arc<dyn FinalityProofProvider<TBl>>>,
    pub transaction_pool: Arc<TExPool>,
    pub rpc_extensions_builder: Box<dyn RpcExtensionBuilder<Output = TRpc> + Send>,
    pub remote_blockchain: Option<Arc<dyn RemoteBlockchain<TBl>>>,
    pub block_announce_validator_builder: Option<Box<dyn FnOnce(Arc<TCl>) -> Box<dyn BlockAnnounceValidator<TBl> + Send> + Send>>,
}

Parameters to pass into build.

Fields

config: Configuration

The service configuration.

client: Arc<TCl>

A shared client returned by new_full_parts/new_light_parts.

backend: Arc<Backend>

A shared backend returned by new_full_parts/new_light_parts.

task_manager: TaskManager

A task manager returned by new_full_parts/new_light_parts.

keystore: Arc<RwLock<Keystore>>

A shared keystore returned by new_full_parts/new_light_parts.

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

An optional, shared data fetcher for light clients.

import_queue: TImpQu

An import queue.

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.

transaction_pool: Arc<TExPool>

A shared transaction pool.

rpc_extensions_builder: Box<dyn RpcExtensionBuilder<Output = TRpc> + Send>

A RPC extension builder. Use NoopRpcExtensionBuilder if you just want to pass in the extensions directly.

remote_blockchain: Option<Arc<dyn RemoteBlockchain<TBl>>>

An optional, shared remote blockchain instance. Used for light clients.

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

A block annouce validator builder.

Auto Trait Implementations

impl<TBl, TCl, TImpQu, TExPool, TRpc, Backend> !RefUnwindSafe for ServiceParams<TBl, TCl, TImpQu, TExPool, TRpc, Backend>

impl<TBl, TCl, TImpQu, TExPool, TRpc, Backend> Send for ServiceParams<TBl, TCl, TImpQu, TExPool, TRpc, Backend> where
    Backend: Send + Sync,
    TCl: Send + Sync,
    TExPool: Send + Sync,
    TImpQu: Send,
    <TBl as Block>::Extrinsic: Send,
    <TBl as Block>::Hash: Send,
    <TBl as Block>::Header: Header + Send,
    <<TBl as Block>::Header as Header>::Number: Send

impl<TBl, TCl, TImpQu, TExPool, TRpc, Backend> !Sync for ServiceParams<TBl, TCl, TImpQu, TExPool, TRpc, Backend>

impl<TBl, TCl, TImpQu, TExPool, TRpc, Backend> Unpin for ServiceParams<TBl, TCl, TImpQu, TExPool, TRpc, Backend> where
    TImpQu: Unpin

impl<TBl, TCl, TImpQu, TExPool, TRpc, Backend> !UnwindSafe for ServiceParams<TBl, TCl, TImpQu, TExPool, TRpc, Backend>

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

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