Trait IntoEngineApiRpcModule

Source
pub trait IntoEngineApiRpcModule {
    // Required method
    fn into_rpc_module(self) -> RpcModule<()>;
}
Expand description

Helper trait for the engine api server.

This type-erases the concrete [jsonrpsee] server implementation and only returns the [RpcModule] that contains all the endpoints of the server.

Required Methods§

Source

fn into_rpc_module(self) -> RpcModule<()>

Consumes the type and returns all the methods and subscriptions defined in the trait and returns them as a single [RpcModule]

Implementations on Foreign Types§

Source§

impl<Provider, EngineT, Pool, Validator, ChainSpec> IntoEngineApiRpcModule for EngineApi<Provider, EngineT, Pool, Validator, ChainSpec>
where EngineT: EngineTypes, EngineApi<Provider, EngineT, Pool, Validator, ChainSpec>: EngineApiServer<EngineT>,

Source§

fn into_rpc_module(self) -> RpcModule<()>

Implementors§

impl<Provider, EngineT, Pool, Validator, ChainSpec> IntoEngineApiRpcModule for OpEngineApi<Provider, EngineT, Pool, Validator, ChainSpec>
where EngineT: EngineTypes, Self: OpEngineApiServer<EngineT>,