[][src]Struct sc_service::ServiceComponents

pub struct ServiceComponents<TBl: BlockT, TBackend: Backend<TBl>, TCl> {
    pub task_manager: TaskManager,
    pub network: Arc<NetworkService<TBl, <TBl as BlockT>::Hash>>,
    pub rpc_handlers: Arc<RpcHandlers>,
    pub network_status_sinks: NetworkStatusSinks<TBl>,
    pub telemetry_on_connect_sinks: TelemetryOnConnectSinks,
    pub offchain_workers: Option<Arc<OffchainWorkers<TCl, TBackend::OffchainStorage, TBl>>>,
}

The individual components of the chain, built by the service builder. You are encouraged to deconstruct this into its fields.

Fields

task_manager: TaskManager

The chain task manager.

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

A shared network instance.

rpc_handlers: Arc<RpcHandlers>

RPC handlers that can perform RPC queries.

network_status_sinks: NetworkStatusSinks<TBl>

Sinks to propagate network status updates.

telemetry_on_connect_sinks: TelemetryOnConnectSinks

Shared Telemetry connection sinks,

offchain_workers: Option<Arc<OffchainWorkers<TCl, TBackend::OffchainStorage, TBl>>>

A shared offchain workers instance.

Auto Trait Implementations

impl<TBl, TBackend, TCl> !RefUnwindSafe for ServiceComponents<TBl, TBackend, TCl>

impl<TBl, TBackend, TCl> Send for ServiceComponents<TBl, TBackend, TCl> where
    TCl: Send + Sync,
    <TBl as Block>::Hash: Send + Sync,
    <TBl as Block>::Header: Header,
    <<TBl as Block>::Header as Header>::Number: Send,
    <TBackend as Backend<TBl>>::OffchainStorage: Send + Sync

impl<TBl, TBackend, TCl> !Sync for ServiceComponents<TBl, TBackend, TCl>

impl<TBl, TBackend, TCl> Unpin for ServiceComponents<TBl, TBackend, TCl>

impl<TBl, TBackend, TCl> !UnwindSafe for ServiceComponents<TBl, TBackend, 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[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]