pub type MockNodeTypesWithDB<DB = TempDatabase<DatabaseEnv>> = NodeTypesWithDBAdapter<AnyNodeTypesWithEngine<EthPrimitives, EthEngineTypes, ChainSpec, MerklePatriciaTrie, EthStorage>, Arc<DB>>;
Available on crate feature
test-utils
only.Expand description
Mock reth_node_types::NodeTypesWithDB
for testing.
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>
impl<Types, DB> NodeTypesWithDBAdapter<Types, DB>
pub fn new() -> 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>
impl<Types, DB> Clone for NodeTypesWithDBAdapter<Types, DB>
§fn clone(&self) -> 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)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more§impl<Types, DB> Debug for NodeTypesWithDBAdapter<Types, DB>
impl<Types, DB> Debug for NodeTypesWithDBAdapter<Types, DB>
§impl<Types, DB> Default for NodeTypesWithDBAdapter<Types, DB>
impl<Types, DB> Default for NodeTypesWithDBAdapter<Types, DB>
§fn default() -> 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>
impl<Types, DB> NodeTypes for NodeTypesWithDBAdapter<Types, DB>
§type Primitives = <Types as NodeTypes>::Primitives
type Primitives = <Types as NodeTypes>::Primitives
The node’s primitive types, defining basic operations and structures.
§type StateCommitment = <Types as NodeTypes>::StateCommitment
type StateCommitment = <Types as NodeTypes>::StateCommitment
The type used to perform state commitment operations.
§impl<Types, DB> NodeTypesWithDB for NodeTypesWithDBAdapter<Types, DB>
impl<Types, DB> NodeTypesWithDB for NodeTypesWithDBAdapter<Types, DB>
§impl<Types, DB> NodeTypesWithEngine for NodeTypesWithDBAdapter<Types, DB>
impl<Types, DB> NodeTypesWithEngine for NodeTypesWithDBAdapter<Types, DB>
§type Engine = <Types as NodeTypesWithEngine>::Engine
type Engine = <Types as NodeTypesWithEngine>::Engine
The node’s engine types, defining the interaction with the consensus engine.