reth_provider

Trait FullProvider

Source
pub trait FullProvider<N: NodeTypesWithDB>:
    DatabaseProviderFactory<DB = N::DB>
    + NodePrimitivesProvider<Primitives = N::Primitives>
    + StaticFileProviderFactory
    + BlockReaderIdExt<Transaction = TxTy<N>, Block = BlockTy<N>, Receipt = ReceiptTy<N>, Header = HeaderTy<N>>
    + AccountReader
    + StateProviderFactory
    + EvmEnvProvider
    + ChainSpecProvider<ChainSpec = N::ChainSpec>
    + ChangeSetReader
    + CanonStateSubscriptions
    + ForkChoiceSubscriptions<Header = HeaderTy<N>>
    + StageCheckpointReader
    + Clone
    + Unpin
    + 'static { }
Expand description

Helper trait to unify all provider traits for simplicity.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<T, N: NodeTypesWithDB> FullProvider<N> for T
where T: DatabaseProviderFactory<DB = N::DB> + NodePrimitivesProvider<Primitives = N::Primitives> + StaticFileProviderFactory + BlockReaderIdExt<Transaction = TxTy<N>, Block = BlockTy<N>, Receipt = ReceiptTy<N>, Header = HeaderTy<N>> + AccountReader + StateProviderFactory + EvmEnvProvider + ChainSpecProvider<ChainSpec = N::ChainSpec> + ChangeSetReader + CanonStateSubscriptions + ForkChoiceSubscriptions<Header = HeaderTy<N>> + StageCheckpointReader + Clone + Unpin + 'static,