reth::builder::node

Trait Node

source
pub trait Node<N>: NodeTypesWithEngine + Clone
where N: FullNodeTypes,
{ type ComponentsBuilder: NodeComponentsBuilder<N>; type AddOns: NodeAddOns<NodeAdapter<N, <Self::ComponentsBuilder as NodeComponentsBuilder<N>>::Components>>; // Required methods fn components_builder(&self) -> Self::ComponentsBuilder; fn add_ons(&self) -> Self::AddOns; }
Expand description

A crate::Node is a NodeTypesWithEngine that comes with preconfigured components.

This can be used to configure the builder with a preset of components.

Required Associated Types§

source

type ComponentsBuilder: NodeComponentsBuilder<N>

The type that builds the node’s components.

source

type AddOns: NodeAddOns<NodeAdapter<N, <Self::ComponentsBuilder as NodeComponentsBuilder<N>>::Components>>

Exposes the customizable node add-on types.

Required Methods§

source

fn components_builder(&self) -> Self::ComponentsBuilder

Returns a NodeComponentsBuilder for the node.

source

fn add_ons(&self) -> Self::AddOns

Returns the node add-ons.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl<Types, N> Node<N> for EthereumNode
where Types: NodeTypesWithEngine<Engine = EthEngineTypes, ChainSpec = ChainSpec>, N: FullNodeTypes<Types = Types>,

Implementors§

source§

impl<N, C, AO> Node<N> for AnyNode<N, C, AO>