pub type MockNodeTypes = AnyNodeTypesWithEngine<EthPrimitives, EthEngineTypes, ChainSpec, MerklePatriciaTrie, EthStorage>;
Available on crate feature
test-utils
only.Expand description
Mock reth_node_types::NodeTypes
for testing.
Aliased Type§
struct MockNodeTypes { /* 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<P, E, C, SC, S> AnyNodeTypesWithEngine<P, E, C, SC, S>
impl<P, E, C, SC, S> AnyNodeTypesWithEngine<P, E, C, SC, S>
pub const fn new() -> AnyNodeTypesWithEngine<P, E, C, SC, S>
pub const fn new() -> AnyNodeTypesWithEngine<P, E, C, SC, S>
Creates a new instance of AnyNodeTypesWithEngine
.
pub const fn primitives<T>(self) -> AnyNodeTypesWithEngine<T, E, C, SC, S>
pub const fn primitives<T>(self) -> AnyNodeTypesWithEngine<T, E, C, SC, S>
Sets the Primitives
associated type.
pub const fn engine<T>(self) -> AnyNodeTypesWithEngine<P, T, C, SC, S>
pub const fn engine<T>(self) -> AnyNodeTypesWithEngine<P, T, C, SC, S>
Sets the Engine
associated type.
pub const fn chain_spec<T>(self) -> AnyNodeTypesWithEngine<P, E, T, SC, S>
pub const fn chain_spec<T>(self) -> AnyNodeTypesWithEngine<P, E, T, SC, S>
Sets the ChainSpec
associated type.
pub const fn state_commitment<T>(self) -> AnyNodeTypesWithEngine<P, E, C, T, S>
pub const fn state_commitment<T>(self) -> AnyNodeTypesWithEngine<P, E, C, T, S>
Sets the StateCommitment
associated type.
pub const fn storage<T>(self) -> AnyNodeTypesWithEngine<P, E, C, SC, T>
pub const fn storage<T>(self) -> AnyNodeTypesWithEngine<P, E, C, SC, T>
Sets the Storage
associated type.
Trait Implementations
§impl<P, E, C, SC, S> Debug for AnyNodeTypesWithEngine<P, E, C, SC, S>
impl<P, E, C, SC, S> Debug for AnyNodeTypesWithEngine<P, E, C, SC, S>
§impl<P, E, C, SC, S> Default for AnyNodeTypesWithEngine<P, E, C, SC, S>
impl<P, E, C, SC, S> Default for AnyNodeTypesWithEngine<P, E, C, SC, S>
§fn default() -> AnyNodeTypesWithEngine<P, E, C, SC, S>
fn default() -> AnyNodeTypesWithEngine<P, E, C, SC, S>
Returns the “default value” for a type. Read more
§impl<P, E, C, SC, S> NodeTypes for AnyNodeTypesWithEngine<P, E, C, SC, S>where
P: NodePrimitives + Send + Sync + Unpin + 'static,
E: EngineTypes + Send + Sync + Unpin,
C: EthChainSpec<Header = <P as NodePrimitives>::BlockHeader> + 'static,
SC: StateCommitment,
S: Default + Send + Sync + Unpin + Debug + 'static,
impl<P, E, C, SC, S> NodeTypes for AnyNodeTypesWithEngine<P, E, C, SC, S>where
P: NodePrimitives + Send + Sync + Unpin + 'static,
E: EngineTypes + Send + Sync + Unpin,
C: EthChainSpec<Header = <P as NodePrimitives>::BlockHeader> + 'static,
SC: StateCommitment,
S: Default + Send + Sync + Unpin + Debug + 'static,
§type Primitives = P
type Primitives = P
The node’s primitive types, defining basic operations and structures.
§type StateCommitment = SC
type StateCommitment = SC
The type used to perform state commitment operations.