Sets the hook that is run to configure the rpc modules.
(mut self, hook: F)
| 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 |
| 570 | where |
| 571 | F: FnOnce(RpcContext<'_, N, EthB::EthApi>) -> eyre::Result<()> + Send + 'static, |
| 572 | { |
| 573 | self.rpc_add_ons = self.rpc_add_ons.extend_rpc_modules(hook); |
| 574 | self |
| 575 | } |
| 576 | } |
| 577 | |
| 578 | impl<N, EthB, PVB, EB, EVB, Attrs, RpcMiddleware> NodeAddOns<N> |
no outgoing calls
no test coverage detected