(&mut self)
| 35 | |
| 36 | impl Drop for Server { |
| 37 | fn drop(&mut self) { |
| 38 | if let Some(stop) = self.shutdown.take() { |
| 39 | let _ = stop.send(()); |
| 40 | } |
| 41 | if let Some(thread) = self.thread.take() { |
| 42 | let _ = thread.join(); |
| 43 | } |
| 44 | } |
| 45 | } |
| 46 | |
| 47 | /// What a host does in front of the handlers: a request carrying a sandbox |
nothing calls this directly
no outgoing calls
no test coverage detected