Sets the hook that is run once the rpc server is started.
(mut self, hook: F)
| 556 | |
| 557 | /// Sets the hook that is run once the rpc server is started. |
| 558 | pub fn on_rpc_started<F>(mut self, hook: F) -> Self |
| 559 | where |
| 560 | F: FnOnce(RpcContext<'_, N, EthB::EthApi>, RethRpcServerHandles) -> eyre::Result<()> |
| 561 | + Send |
| 562 | + 'static, |
| 563 | { |
| 564 | self.rpc_add_ons = self.rpc_add_ons.on_rpc_started(hook); |
| 565 | self |
| 566 | } |
| 567 | |
| 568 | /// Sets the hook that is run to configure the rpc modules. |
| 569 | pub fn extend_rpc_modules<F>(mut self, hook: F) -> Self |
nothing calls this directly
no outgoing calls
no test coverage detected