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§
Sourcefn build(ctx: &EthApiBuilderCtx<N>) -> Self
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.