pub trait EthApiBuilder<N>: 'staticwhere
N: FullNodeComponents,{
// 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§
Sourcefn 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
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.