reth::api

Trait FullNodeTypes

Source
pub trait FullNodeTypes:
    Send
    + Sync
    + Unpin
    + 'static {
    type Types: NodeTypesWithEngine;
    type DB: Database + DatabaseMetrics + DatabaseMetadata + Clone + Unpin + 'static;
    type Provider: FullProvider<NodeTypesWithDBAdapter<Self::Types, Self::DB>>;
}
Expand description

A helper trait that is downstream of the NodeTypesWithEngine trait and adds stateful components to the node.

Its types are configured by node internally and are not intended to be user configurable.

Required Associated Types§

Source

type Types: NodeTypesWithEngine

Node’s types with the database.

Source

type DB: Database + DatabaseMetrics + DatabaseMetadata + Clone + Unpin + 'static

Underlying database type used by the node to store and retrieve data.

Source

type Provider: FullProvider<NodeTypesWithDBAdapter<Self::Types, Self::DB>>

The provider type used to interact with the node.

Implementors§

Source§

impl<T, C> FullNodeTypes for NodeAdapter<T, C>
where T: FullNodeTypes, C: NodeComponents<T>,

Source§

impl<Types, DB, Provider> FullNodeTypes for FullNodeTypesAdapter<Types, DB, Provider>
where Types: NodeTypesWithEngine, DB: Database + DatabaseMetrics + DatabaseMetadata + Clone + Unpin + 'static, Provider: FullProvider<NodeTypesWithDBAdapter<Types, DB>>,

Source§

type Types = Types

Source§

type DB = DB

Source§

type Provider = Provider