Skip to main content

IntoEngineApiRpcModule

Trait IntoEngineApiRpcModule 

Source
pub trait IntoEngineApiRpcModule {
    // Required method
    fn into_rpc_module(self) -> RpcModule<()>;
}
Available on crate feature rpc only.
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

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl IntoEngineApiRpcModule for NoopEngineApi

Implementors§

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>,