[][src]Struct sc_service::Service

pub struct Service<TBl, TCl, TSc, TNetStatus, TNet, TTxPool, TOc> { /* fields omitted */ }

Substrate service.

Trait Implementations

impl<TBl, TBackend, TExec, TRtApi, TSc, TExPool, TOc> AbstractService for Service<TBl, Client<TBackend, TExec, TBl, TRtApi>, TSc, NetworkStatus<TBl>, NetworkService<TBl, TBl::Hash>, TExPool, TOc> where
    TBl: BlockT,
    TBackend: 'static + BackendT<TBl>,
    TExec: 'static + CallExecutor<TBl, Backend = TBackend> + Send + Sync + Clone,
    TRtApi: 'static + Send + Sync + ConstructRuntimeApi<TBl, Client<TBackend, TExec, TBl, TRtApi>>,
    <TRtApi as ConstructRuntimeApi<TBl, Client<TBackend, TExec, TBl, TRtApi>>>::RuntimeApi: Core<TBl> + ApiExt<TBl, StateBackend = TBackend::State> + ApiErrorExt<Error = Error> + BlockBuilder<TBl>,
    TSc: SelectChain<TBl> + 'static + Clone + Send + Unpin,
    TExPool: 'static + TransactionPool<Block = TBl> + MallocSizeOfWasm,
    TOc: 'static + Send + Sync
[src]

type Block = TBl

Type of block of this chain.

type Backend = TBackend

Backend storage for the client.

type CallExecutor = TExec

How to execute calls towards the runtime.

type RuntimeApi = TRtApi

API that the runtime provides.

type SelectChain = TSc

Chain selection algorithm.

type TransactionPool = TExPool

Transaction pool.

type Client = Client<Self::Backend, Self::CallExecutor, Self::Block, Self::RuntimeApi>

The generic Client type, the bounds here are the ones specifically required by internal crates like sc_informant. Read more

impl<TBl, TCl, TSc, TNetStatus, TNet, TTxPool, TOc> Future for Service<TBl, TCl, TSc, TNetStatus, TNet, TTxPool, TOc>[src]

type Output = Result<(), Error>

The type of value produced on completion.

impl<TBl, TCl, TSc, TNetStatus, TNet, TTxPool, TOc> Spawn for Service<TBl, TCl, TSc, TNetStatus, TNet, TTxPool, TOc>[src]

impl<TBl, TCl, TSc, TNetStatus, TNet, TTxPool, TOc> Unpin for Service<TBl, TCl, TSc, TNetStatus, TNet, TTxPool, TOc>[src]

Auto Trait Implementations

impl<TBl, TCl, TSc, TNetStatus, TNet, TTxPool, TOc> !RefUnwindSafe for Service<TBl, TCl, TSc, TNetStatus, TNet, TTxPool, TOc>

impl<TBl, TCl, TSc, TNetStatus, TNet, TTxPool, TOc> Send for Service<TBl, TCl, TSc, TNetStatus, TNet, TTxPool, TOc> where
    TBl: Send,
    TCl: Send + Sync,
    TNet: Send + Sync,
    TNetStatus: Send,
    TOc: Send + Sync,
    TSc: Send,
    TTxPool: Send + Sync

impl<TBl, TCl, TSc, TNetStatus, TNet, TTxPool, TOc> Sync for Service<TBl, TCl, TSc, TNetStatus, TNet, TTxPool, TOc> where
    TBl: Sync,
    TCl: Send + Sync,
    TNet: Send + Sync,
    TNetStatus: Send,
    TOc: Send + Sync,
    TSc: Sync,
    TTxPool: Send + Sync

impl<TBl, TCl, TSc, TNetStatus, TNet, TTxPool, TOc> !UnwindSafe for Service<TBl, TCl, TSc, TNetStatus, TNet, TTxPool, TOc>

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> FutureExt for T where
    T: Future + ?Sized
[src]

impl<T> FutureExt for T where
    T: Future + ?Sized

impl<T> FutureExt for T where
    T: Future

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<F> IntoFuture for F where
    F: Future
[src]

type Output = <F as Future>::Output

🔬 This is a nightly-only experimental API. (into_future)

The output that the future will produce on completion.

type Future = F

🔬 This is a nightly-only experimental API. (into_future)

Which kind of future are we turning this into?

impl<T> IntoFuture for T where
    T: Future

type Output = <T as Future>::Output

The type of value produced on completion.

type Future = T

Which kind of future are we turning this into?

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

impl<Sp> SpawnExt for Sp where
    Sp: Spawn + ?Sized
[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<F, T, E> TryFuture for F where
    F: Future<Output = Result<T, E>> + ?Sized
[src]

type Ok = T

The type of successful values yielded by this future

type Error = E

The type of failures yielded by this future

impl<Fut> TryFutureExt for Fut where
    Fut: TryFuture + ?Sized
[src]

impl<F> TryFutureExt for F where
    F: TryFuture
[src]

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

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