(mut self, rpc_method: RpcMethodBuilder<S>)
| 294 | } |
| 295 | |
| 296 | pub fn rpcmethod_from_builder(mut self, rpc_method: RpcMethodBuilder<S>) -> Builder<S, I, O> { |
| 297 | self.rpcmethods |
| 298 | .insert(rpc_method.name.to_string(), rpc_method.build()); |
| 299 | self |
| 300 | } |
| 301 | |
| 302 | /// Register a callback for setconfig to accept changes for dynamic options |
| 303 | pub fn setconfig_callback<C, F>(mut self, setconfig_callback: C) -> Builder<S, I, O> |