reth::builder::rpc

Trait EthApiBuilder

Source
pub trait EthApiBuilder<N>: 'static{
    // Required method
    fn build(
        ctx: &EthApiBuilderCtx<<N as RpcNodeCore>::Provider, <N as RpcNodeCore>::Pool, <N as RpcNodeCore>::Evm, <N as RpcNodeCore>::Network, TaskExecutor, <N as RpcNodeCore>::Provider>,
    ) -> Self;
}
Expand description

A EthApi that knows how to build itself from EthApiBuilderCtx.

Required Methods§

Source

fn build( ctx: &EthApiBuilderCtx<<N as RpcNodeCore>::Provider, <N as RpcNodeCore>::Pool, <N as RpcNodeCore>::Evm, <N as RpcNodeCore>::Network, TaskExecutor, <N as RpcNodeCore>::Provider>, ) -> 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.

Implementors§