Type Alias MockNodeTypesWithDB

Source
pub type MockNodeTypesWithDB<DB = TempDatabase<DatabaseEnv>> = NodeTypesWithDBAdapter<AnyNodeTypesWithEngine<EthPrimitives, EthEngineTypes, ChainSpec, MerklePatriciaTrie, EthStorage>, Arc<DB>>;
Available on crate feature test-utils only.
Expand description

Aliased Type§

struct MockNodeTypesWithDB<DB = TempDatabase<DatabaseEnv>> { /* private fields */ }

Layout§

Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.

Size: 0 bytes

Implementations

§

impl<Types, DB> NodeTypesWithDBAdapter<Types, DB>

pub fn new() -> NodeTypesWithDBAdapter<Types, DB>

Create a new adapter with the configured types.

Trait Implementations

§

impl<Types, DB> Clone for NodeTypesWithDBAdapter<Types, DB>

§

fn clone(&self) -> NodeTypesWithDBAdapter<Types, DB>

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
§

impl<Types, DB> Debug for NodeTypesWithDBAdapter<Types, DB>
where Types: Debug, DB: Debug,

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl<Types, DB> Default for NodeTypesWithDBAdapter<Types, DB>

§

fn default() -> NodeTypesWithDBAdapter<Types, DB>

Returns the “default value” for a type. Read more
§

impl<Types, DB> NodeTypes for NodeTypesWithDBAdapter<Types, DB>
where Types: NodeTypes, DB: Send + Sync + Unpin + 'static,

§

type Primitives = <Types as NodeTypes>::Primitives

The node’s primitive types, defining basic operations and structures.
§

type ChainSpec = <Types as NodeTypes>::ChainSpec

The type used for configuration of the EVM.
§

type StateCommitment = <Types as NodeTypes>::StateCommitment

The type used to perform state commitment operations.
§

type Storage = <Types as NodeTypes>::Storage

The type responsible for writing chain primitives to storage.
§

impl<Types, DB> NodeTypesWithDB for NodeTypesWithDBAdapter<Types, DB>
where Types: NodeTypes, DB: Database + DatabaseMetrics + Clone + Unpin + 'static,

§

type DB = DB

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

impl<Types, DB> NodeTypesWithEngine for NodeTypesWithDBAdapter<Types, DB>
where Types: NodeTypesWithEngine, DB: Send + Sync + Unpin + 'static,

§

type Engine = <Types as NodeTypesWithEngine>::Engine

The node’s engine types, defining the interaction with the consensus engine.