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]

Implementors§