Crate sc_service[−][src]
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::BasePath; | 
| pub use config::Configuration; | 
| pub use config::RpcMethods; | 
| pub use config::TaskExecutor; | 
| pub use config::TaskType; | 
Modules
| chain_ops | Chain utilities. | 
| config | Service configuration. | 
| error | Errors that can occur during the service operation. | 
Structs
| BuildNetworkParams | Parameters to pass into  | 
| ClientConfig | Relevant client configuration items relevant for the client. | 
| GenericChainSpec | A configuration of a chain. Can be used to build a genesis block. | 
| KeystoreContainer | Construct and hold different layers of Keystore wrappers | 
| LocalCallExecutor | Call executor that executes methods locally, querying all required data from local backend. | 
| NetworkStarter | Object used to start the network. | 
| NetworkStatusSinks | Sinks to propagate network status updates.
For each element, every time the  | 
| NoopRpcExtensionBuilder | A utility struct for implementing an  | 
| PartialComponents | An incomplete set of chain components, but enough to run the chain ops subcommands. | 
| RpcHandlers | RPC handlers that can perform RPC queries. | 
| 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). | 
| SpawnTaskHandle | An handle for spawning tasks in the service. | 
| SpawnTasksParams | Parameters to pass into  | 
| TaskManager | Helper struct to manage background/async tasks in Service. | 
| TransactionPoolAdapter | Transaction pool adapter. | 
| TransactionPoolOptions | Pool configuration options. | 
Enums
| ChainType | The type of a chain. | 
| DatabaseConfig | Where to find the database.. | 
| KeepBlocks | Block pruning settings. | 
| PruningMode | Pruning mode. | 
| Role | Role of the local node. | 
| TracingReceiver | Used to configure how to receive the metrics | 
| TransactionStorageMode | Block body storage scheme. | 
Traits
| ChainSpec | Common interface of a chain specification. | 
| ChainSpecExtension | A collection of  | 
| ImportQueue | Blocks import queue API. | 
| InPoolTransaction | In-pool transaction interface. | 
| IntoPoolError | Transaction pool error conversion. | 
| MallocSizeOfWasm | A type that implements  | 
| NativeExecutionDispatch | Delegate for dispatching a CodeExecutor call. | 
| RpcExtensionBuilder | A utility trait for building an RPC extension given a  | 
| RuntimeGenesis | A set of traits for the runtime genesis config. | 
| TransactionPool | Transaction pool interface. | 
Functions
| build_network | Build the network service, the network status sinks and an RPC sender. | 
| build_offchain_workers | Build a shared offchain workers instance. | 
| new_client | Create an instance of db-backed client. | 
| new_full_client | Creates a new full client for the given config. | 
| new_full_parts | Create the initial parts of a full node. | 
| new_light_parts | Create the initial parts of a light node. | 
| spawn_tasks | Spawn the tasks that are required to run a node. | 
Type Definitions
| NoExtension | A type denoting empty extensions. | 
| 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. | 
| TLightBackendWithHash | Light client backend type with a specific hash type. | 
| TLightCallExecutor | Light call executor type. | 
| TLightClient | Light client type. | 
| TLightClientWithBackend | Light client type with a specific backend. |