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§
Sourcefn on_rpc_started(
self: Box<Self>,
ctx: RpcContext<'_, Node, EthApi>,
handles: RethRpcServerHandles,
) -> Result<()>
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.