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>)
| 755 | /// |
| 756 | /// Caution: This runtime must not be created from within asynchronous context. |
| 757 | pub fn with_tokio_runtime(mut self, tokio_runtime: Option<tokio::runtime::Handle>) -> Self { |
| 758 | self.tokio_runtime = tokio_runtime; |
| 759 | self |
| 760 | } |
| 761 | |
| 762 | /// Configure the RPC middleware to use |
| 763 | pub fn with_rpc_middleware<T>(self, rpc_middleware: T) -> BaseAddOnsBuilder<NetworkT, T> { |