reth::builder::rpc

Trait ExtendRpcModules

source
pub trait ExtendRpcModules<Node, EthApi>: Send
where Node: FullNodeComponents, EthApi: EthApiTypes,
{ // Required method fn extend_rpc_modules( self: Box<Self>, ctx: RpcContext<'_, Node, EthApi>, ) -> Result<(), Report>; }
Expand description

Event hook that is called when the rpc server is started.

Required Methods§

source

fn extend_rpc_modules( self: Box<Self>, ctx: RpcContext<'_, Node, EthApi>, ) -> Result<(), Report>

The hook that is called once the rpc server is started.

Implementations on Foreign Types§

source§

impl<Node, EthApi> ExtendRpcModules<Node, EthApi> for ()
where Node: FullNodeComponents, EthApi: EthApiTypes,

source§

fn extend_rpc_modules( self: Box<()>, _: RpcContext<'_, Node, EthApi>, ) -> Result<(), Report>

Implementors§

source§

impl<Node, EthApi, F> ExtendRpcModules<Node, EthApi> for F
where F: FnOnce(RpcContext<'_, Node, EthApi>) -> Result<(), Report> + Send, Node: FullNodeComponents, EthApi: EthApiTypes,