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,