Trait duniter::service::client::AbstractClient

source ·
pub trait AbstractClient<Block, Backend>: BlockchainEvents<Block> + Sized + Send + Sync + ProvideRuntimeApi<Block> + HeaderBackend<Block> + CallApiAt<Block> + AuxStore + UsageProvider<Block> + HeaderMetadata<Block, Error = Error>
where Block: BlockT, Backend: BackendT<Block>, Backend::State: StateBackend<BlakeTwo256>, Self::Api: RuntimeApiCollection,
{ }
Expand description

Trait that abstracts over all available client implementations.

For a concrete type there exists Client.

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<Block, Backend, Client> AbstractClient<Block, Backend> for Client
where Block: BlockT, Backend: BackendT<Block>, Backend::State: StateBackend<BlakeTwo256>, Client: BlockchainEvents<Block> + ProvideRuntimeApi<Block> + HeaderBackend<Block> + AuxStore + UsageProvider<Block> + Sized + Send + Sync + CallApiAt<Block> + HeaderMetadata<Block, Error = Error>, Client::Api: RuntimeApiCollection,