reth_node_builder::rpc

Trait ExtendRpcModules

Source
pub trait ExtendRpcModules<Node: FullNodeComponents, EthApi: EthApiTypes>: Send {
    // Required method
    fn extend_rpc_modules(
        self: Box<Self>,
        ctx: RpcContext<'_, Node, EthApi>,
    ) -> Result<()>;
}
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<()>

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<Self>, _: RpcContext<'_, Node, EthApi>, ) -> Result<()>

Implementors§

Source§

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