diff options
| author | Emīls <emils@mullvad.net> | 2020-06-22 15:33:26 +0100 |
|---|---|---|
| committer | Emīls <emils@mullvad.net> | 2020-06-25 15:21:31 +0100 |
| commit | 1f00fdf57d7007dd0991fdf414cfde2530b2a058 (patch) | |
| tree | 2375142cf859eea1e788ce828b00cf95c1814c82 | |
| parent | 822e52dcfb8747c232b08f53a1d73724973d7ee4 (diff) | |
| download | mullvadvpn-1f00fdf57d7007dd0991fdf414cfde2530b2a058.tar.xz mullvadvpn-1f00fdf57d7007dd0991fdf414cfde2530b2a058.zip | |
Allow users of mullvad-rpc to use rpc runtime
| -rw-r--r-- | mullvad-rpc/src/lib.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/mullvad-rpc/src/lib.rs b/mullvad-rpc/src/lib.rs index aaea9aad4e..57a32c1448 100644 --- a/mullvad-rpc/src/lib.rs +++ b/mullvad-rpc/src/lib.rs @@ -99,6 +99,10 @@ impl MullvadRpcRuntime { pub fn rest_handle(&mut self) -> rest::RequestServiceHandle { self.new_request_service(None) } + + pub fn runtime(&mut self) -> &mut tokio::runtime::Runtime { + &mut self.runtime + } } impl Drop for MullvadRpcRuntime { |
