[][src]Crate sc_service

Substrate service. Starts a thread that spins up the network, client, and extrinsic pool. Manages communication between them.

Re-exports

pub use self::error::Error;
pub use config::Configuration;

Modules

chain_ops

Chain utilities.

config

Service configuration.

error

Errors that can occur during the service operation.

Structs

ChainSpec

A configuration of a chain. Can be used to build a genesis block.

NetworkStatus

Overview status of the network.

Roles

Bitmask of the roles that a node fulfills.

RpcMetadata

RPC Metadata.

RpcSession

An RPC session. Used to perform in-memory RPC queries (ie. RPC queries that don't go through the HTTP or WebSockets server).

Service

Substrate service.

ServiceBuilder

Aggregator for the components required to build a service.

SpawnTaskHandle

An handle for spawning tasks in the service.

TransactionPoolAdapter

Transaction pool adapter.

TransactionPoolOptions

Pool configuration options.

Enums

PruningMode

Pruning mode.

Traits

AbstractService

Abstraction over a Substrate service.

ChainSpecExtension

A collection of ChainSpec extensions.

InPoolTransaction

In-pool transaction interface.

IntoPoolError

Transaction pool error conversion.

RuntimeGenesis

A set of traits for the runtime genesis config.

ServiceBuilderCommand

Implemented on ServiceBuilder. Allows running block commands, such as import/export/validate components to the builder.

TransactionPool

Transaction pool interface.

TransactionPoolMaintainer

Transaction pool maintainer interface.

Functions

new_full_client

Creates a new full client for the given config.

Type Definitions

FinalityNotifications

A stream of block finality notifications.

Properties

Arbitrary properties defined in chain spec as a JSON object

TFullBackend

Full client backend type.

TFullCallExecutor

Full client call executor type.

TFullClient

Full client type.

TLightBackend

Light client backend type.

TLightCallExecutor

Light call executor type.

TLightClient

Light client type.

TaskExecutor

Alias for a an implementation of futures::future::Executor.