pub trait EngineApiBuilder<Node>: Send + Syncwhere
Node: FullNodeComponents,{
type EngineApi: IntoEngineApiRpcModule + Send + Sync;
// Required method
fn build_engine_api(
self,
ctx: &AddOnsContext<'_, Node>,
) -> impl Future<Output = Result<Self::EngineApi, Report>> + Send;
}
Expand description
Builder for engine API RPC module.
Required Associated Types§
Sourcetype EngineApi: IntoEngineApiRpcModule + Send + Sync
type EngineApi: IntoEngineApiRpcModule + Send + Sync
The engine API RPC module. Only required to be convertible to an [jsonrpsee
] module.
Required Methods§
Sourcefn build_engine_api(
self,
ctx: &AddOnsContext<'_, Node>,
) -> impl Future<Output = Result<Self::EngineApi, Report>> + Send
fn build_engine_api( self, ctx: &AddOnsContext<'_, Node>, ) -> impl Future<Output = Result<Self::EngineApi, Report>> + Send
Builds the engine API.
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.