diff options
| author | Linus Färnstrand <linus@mullvad.net> | 2017-05-10 11:20:50 +0200 |
|---|---|---|
| committer | Linus Färnstrand <linus@mullvad.net> | 2017-05-10 11:20:50 +0200 |
| commit | 3dad93065a6f6c186f72ab574cb9057a1f329edc (patch) | |
| tree | 25813f3e76874531c3111f199dc08962f9e98407 | |
| parent | 7cb5f4713766b1b0632dcef053d84b3bacf82fe5 (diff) | |
| download | mullvadvpn-3dad93065a6f6c186f72ab574cb9057a1f329edc.tar.xz mullvadvpn-3dad93065a6f6c186f72ab574cb9057a1f329edc.zip | |
Add documentation to IpcServer
| -rw-r--r-- | talpid_ipc/src/lib.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/talpid_ipc/src/lib.rs b/talpid_ipc/src/lib.rs index d1f1b816bd..bad341bb32 100644 --- a/talpid_ipc/src/lib.rs +++ b/talpid_ipc/src/lib.rs @@ -87,10 +87,12 @@ impl IpcServer { &self.address } + /// Consumes the server, stops it and waits for it to finish. pub fn stop(self) { self.server.close(); } + /// Consumes the server and waits for it to finish. pub fn wait(self) -> Result<()> { self.server.wait().chain_err(|| ErrorKind::IpcServerError) } |
