Trait reth::builder::NodeTypes

source ·
pub trait NodeTypes: Send + Sync + Unpin + 'static {
    type Primitives: NodePrimitives;
    type Engine: EngineTypes;
}
Expand description

The type that configures the essential types of an ethereum like node.

This includes the primitive types of a node, the engine API types for communication with the consensus layer.

This trait is intended to be stateless and only define the types of the node.

Required Associated Types§

source

type Primitives: NodePrimitives

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

source

type Engine: EngineTypes

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

Implementations on Foreign Types§

source§

impl NodeTypes for OptimismNode

Implementors§

source§

impl<N, C> NodeTypes for AnyNode<N, C>
where N: FullNodeTypes, C: NodeComponentsBuilder<N> + Sync + Unpin + 'static,

source§

impl<P, E> NodeTypes for AnyNodeTypes<P, E>
where P: NodePrimitives + Send + Sync + Unpin + 'static, E: EngineTypes + Send + Sync + Unpin + 'static,

§

type Primitives = P

§

type Engine = E

source§

impl<T, C> NodeTypes for NodeAdapter<T, C>
where T: FullNodeTypes, C: NodeComponents<T>,

source§

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

§

type Primitives = <Types as NodeTypes>::Primitives

§

type Engine = <Types as NodeTypes>::Engine