Configures a custom tokio runtime for the RPC server. Caution: This runtime must not be created from within asynchronous context.
(mut self, tokio_runtime: Option<tokio::runtime::Handle>)
| 771 | /// |
| 772 | /// Caution: This runtime must not be created from within asynchronous context. |
| 773 | pub fn with_tokio_runtime(mut self, tokio_runtime: Option<tokio::runtime::Handle>) -> Self { |
| 774 | self.tokio_runtime = tokio_runtime; |
| 775 | self |
| 776 | } |
| 777 | |
| 778 | /// Configure the RPC middleware to use |
| 779 | pub fn with_rpc_middleware<T>(self, rpc_middleware: T) -> BaseAddOnsBuilder<NetworkT, T> { |