[][src]Struct sc_service::SpawnTasksParams

pub struct SpawnTasksParams<'a, TBl: BlockT, TCl, TExPool, TRpc, Backend> {
    pub config: Configuration,
    pub client: Arc<TCl>,
    pub backend: Arc<Backend>,
    pub task_manager: &'a mut TaskManager,
    pub keystore: Arc<RwLock<Keystore>>,
    pub on_demand: Option<Arc<OnDemand<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 network: Arc<NetworkService<TBl, <TBl as BlockT>::Hash>>,
    pub network_status_sinks: NetworkStatusSinks<TBl>,
    pub system_rpc_tx: TracingUnboundedSender<Request<TBl>>,
    pub telemetry_connection_sinks: TelemetryConnectionSinks,
}

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: &'a mut 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.

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.

network: Arc<NetworkService<TBl, <TBl as BlockT>::Hash>>

A shared network instance.

network_status_sinks: NetworkStatusSinks<TBl>

Sinks to propagate network status updates.

system_rpc_tx: TracingUnboundedSender<Request<TBl>>

A Sender for RPC requests.

telemetry_connection_sinks: TelemetryConnectionSinks

Shared Telemetry connection sinks,

Auto Trait Implementations

impl<'a, TBl, TCl, TExPool, TRpc, Backend> !RefUnwindSafe for SpawnTasksParams<'a, TBl, TCl, TExPool, TRpc, Backend>

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

impl<'a, TBl, TCl, TExPool, TRpc, Backend> !Sync for SpawnTasksParams<'a, TBl, TCl, TExPool, TRpc, Backend>

impl<'a, TBl, TCl, TExPool, TRpc, Backend> Unpin for SpawnTasksParams<'a, TBl, TCl, TExPool, TRpc, Backend>

impl<'a, TBl, TCl, TExPool, TRpc, Backend> !UnwindSafe for SpawnTasksParams<'a, TBl, TCl, 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]