Trait FullNodeTypes

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

A helper trait that is downstream of the NodeTypes 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§

type Types: NodeTypes

Node’s types with the database.

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

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

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

The provider type used to interact with the node.

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: FullNodeTypes, C: NodeComponents<T>> FullNodeTypes for NodeAdapter<T, C>

§

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

§

type Types = Types

§

type DB = DB

§

type Provider = Provider