Sets the server handle to stop.
(&self, handle: ServerHandle)
| 54 | impl StopHandle { |
| 55 | /// Sets the server handle to stop. |
| 56 | pub(crate) fn register(&self, handle: ServerHandle) { |
| 57 | *self.inner.lock() = Some(handle); |
| 58 | } |
| 59 | |
| 60 | /// Sends stop signal through contained server handle. |
| 61 | pub(crate) fn stop(&self, graceful: bool) { |