Trait NodeTypesWithDB
pub trait NodeTypesWithDB: NodeTypes {
type DB: Database + DatabaseMetrics + Clone + Unpin + 'static;
}Expand description
A helper trait that is downstream of the NodeTypes trait and adds database to the
node.
Its types are configured by node internally and are not intended to be user configurable.
Source
Underlying database type used by the node to store and retrieve data.
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.