[][src]Struct substrate_service::FullComponents

pub struct FullComponents<Factory: ServiceFactory> { /* fields omitted */ }

A struct that implement Components for the full client.

Methods

impl<Factory: ServiceFactory> FullComponents<Factory>[src]

pub fn new(
    config: FactoryFullConfiguration<Factory>,
    task_executor: TaskExecutor
) -> Result<Self, Error>
[src]

Create new FullComponents

Methods from Deref<Target = Service<Self>>

pub fn authority_key(&self) -> Option<Pair>[src]

give the authority key, if we are an authority and have a key

pub fn telemetry(&self) -> Option<Arc<Telemetry>>[src]

return a shared instance of Telemtry (if enabled)

pub fn client(&self) -> Arc<ComponentClient<Components>>[src]

Get shared client instance.

pub fn network(&self) -> Arc<NetworkService<Components::Factory>>[src]

Get shared network instance.

pub fn transaction_pool(
    &self
) -> Arc<TransactionPool<Components::TransactionPoolApi>>
[src]

Get shared transaction pool instance.

pub fn inherents_pool(
    &self
) -> Arc<InherentsPool<ComponentExtrinsic<Components>>>
[src]

Get shared inherents pool instance.

pub fn keystore(&self) -> &Keystore[src]

Get shared keystore.

pub fn on_exit(&self) -> Exit[src]

Get a handle to a future that will resolve on exit.

Trait Implementations

impl<Factory: ServiceFactory> Components for FullComponents<Factory>[src]

type Factory = Factory

Associated service factory.

type Executor = FullExecutor<Factory>

Client executor.

type Backend = FullBackend<Factory>

Client backend.

type TransactionPoolApi = <Factory as ServiceFactory>::FullTransactionPoolApi

Extrinsic pool type.

type ImportQueue = Factory::FullImportQueue

Our Import Queue

type RuntimeApi = Factory::RuntimeApi

The type that implements the runtime API.

type RuntimeServices = Factory::FullService

A type that can start all runtime-dependent services.

impl<Factory: ServiceFactory> Deref for FullComponents<Factory>[src]

type Target = Service<Self>

The resulting type after dereferencing.

impl<Factory: ServiceFactory> DerefMut for FullComponents<Factory>[src]

Auto Trait Implementations

impl<Factory> Send for FullComponents<Factory> where
    Factory: Send,
    <Factory as ServiceFactory>::Block: Block + Send + Sync,
    <Factory as ServiceFactory>::Configuration: Send,
    <<Factory as ServiceFactory>::Block as Block>::Extrinsic: Decode + Encode + Send + Sync,
    <Factory as ServiceFactory>::FullTransactionPoolApi: ChainApi + Send + Sync,
    <<Factory as ServiceFactory>::Block as Block>::Header: Decode + Encode + Header + Send,
    <<<Factory as ServiceFactory>::Block as Block>::Header as Header>::Number: Decode + Encode + Send + Sync,
    <Factory as ServiceFactory>::RuntimeApi: Send + Sync,
    <Factory as ServiceFactory>::RuntimeDispatch: Send + Sync

impl<Factory> Sync for FullComponents<Factory> where
    Factory: Sync,
    <Factory as ServiceFactory>::Block: Block + Send + Sync,
    <Factory as ServiceFactory>::Configuration: Sync,
    <<Factory as ServiceFactory>::Block as Block>::Extrinsic: Decode + Encode + Send + Sync,
    <Factory as ServiceFactory>::FullTransactionPoolApi: ChainApi + Send + Sync,
    <<Factory as ServiceFactory>::Block as Block>::Header: Decode + Encode + Header + Send,
    <<<Factory as ServiceFactory>::Block as Block>::Header as Header>::Number: Decode + Encode + Send + Sync,
    <Factory as ServiceFactory>::RuntimeApi: Send + Sync,
    <Factory as ServiceFactory>::RuntimeDispatch: Send + Sync

Blanket Implementations

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

impl<T> From<T> 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<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Erased for T[src]

impl<S, T> UncheckedInto<T> for S where
    T: UncheckedFrom<S>, 
[src]

impl<T> Same<T> for T[src]

type Output = T

Should always be Self

impl<T> Erased for T[src]

impl<T> Typeable for T where
    T: Any
[src]

fn get_type(&self) -> TypeId[src]

Get the TypeId of this object.