reth_node_builder::rpc

Trait EthApiBuilder

Source
pub trait EthApiBuilder<N: FullNodeComponents>: 'static {
    // Required method
    fn build(ctx: &EthApiBuilderCtx<N>) -> Self;
}
Expand description

A EthApi that knows how to build itself from EthApiBuilderCtx.

Required Methods§

Source

fn build(ctx: &EthApiBuilderCtx<N>) -> Self

Builds the EthApi from the given context.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl<N: FullNodeComponents> EthApiBuilder<N> for EthApi<N::Provider, N::Pool, N::Network, N::Evm>

Source§

fn build(ctx: &EthApiBuilderCtx<N>) -> Self

Implementors§