pub trait EthApiBuilder<N>:
Default
+ Send
+ 'staticwhere
N: FullNodeComponents,{
type EthApi: FullEthApiServer<Provider = <N as FullNodeTypes>::Provider, Pool = <N as FullNodeComponents>::Pool>;
// Required method
fn build_eth_api(
self,
ctx: EthApiCtx<'_, N>,
) -> impl Future<Output = Result<Self::EthApi, Report>> + Send;
}Expand description
A EthApi that knows how to build eth namespace API from FullNodeComponents.
Required Associated Types§
Sourcetype EthApi: FullEthApiServer<Provider = <N as FullNodeTypes>::Provider, Pool = <N as FullNodeComponents>::Pool>
type EthApi: FullEthApiServer<Provider = <N as FullNodeTypes>::Provider, Pool = <N as FullNodeComponents>::Pool>
The Ethapi implementation this builder will build.
Required Methods§
Sourcefn build_eth_api(
self,
ctx: EthApiCtx<'_, N>,
) -> impl Future<Output = Result<Self::EthApi, Report>> + Send
fn build_eth_api( self, ctx: EthApiCtx<'_, N>, ) -> impl Future<Output = Result<Self::EthApi, Report>> + Send
Builds the EthApiServer from the given context.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".