Struct tc_service::SpawnTasksParams[][src]

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: SyncCryptoStorePtr,
    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>>,
}

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: SyncCryptoStorePtr

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.

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

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> Downcast for T where
    T: Any

impl<T> DowncastSync for T where
    T: Any + Send + Sync

impl<T> Erased for T

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

type Output = T

Should always be Self

impl<T> SaturatedConversion for T

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

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

impl<T> WithSubscriber for T[src]