referrerpolicy=no-referrer-when-downgrade

ClientForService

Trait ClientForService 

Source
pub trait ClientForService<Block: BlockT>:
    ProvideRuntimeApi<Block>
    + HeaderMetadata<Block, Error = Error>
    + HeaderBackend<Block>
    + BlockBackend<Block>
    + ProofProvider<Block>
    + BlockchainEvents<Block>
    + 'static { }
Expand description

The client capabilities every service entry point relies on.

It is blanket implemented, so every full client qualifies. Having it as a single bound keeps the client bounds readable at build_network, build_network_advanced, spawn_tasks and gen_rpc_module, each of which adds only the few capabilities it genuinely needs on top.

Implementors§

Source§

impl<Block: BlockT, T> ClientForService<Block> for T
where T: ProvideRuntimeApi<Block> + HeaderMetadata<Block, Error = Error> + HeaderBackend<Block> + BlockBackend<Block> + ProofProvider<Block> + BlockchainEvents<Block> + 'static,