reth_node_builder::rpc

Trait OnRpcStarted

Source
pub trait OnRpcStarted<Node: FullNodeComponents, EthApi: EthApiTypes>: Send {
    // Required method
    fn on_rpc_started(
        self: Box<Self>,
        ctx: RpcContext<'_, Node, EthApi>,
        handles: RethRpcServerHandles,
    ) -> Result<()>;
}
Expand description

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

Required Methods§

Source

fn on_rpc_started( self: Box<Self>, ctx: RpcContext<'_, Node, EthApi>, handles: RethRpcServerHandles, ) -> Result<()>

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

Implementations on Foreign Types§

Source§

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

Source§

fn on_rpc_started( self: Box<Self>, _: RpcContext<'_, Node, EthApi>, _: RethRpcServerHandles, ) -> Result<()>

Implementors§

Source§

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