Cancel and remove a pending request. Consumes the handle.
(self)
| 113 | |
| 114 | /// Cancel and remove a pending request. Consumes the handle. |
| 115 | pub fn cancel(self) { |
| 116 | let mut mgr = super::NET_MANAGER.lock().unwrap(); |
| 117 | mgr.http_requests.remove(&self.id); |
| 118 | } |
| 119 | } |
| 120 | |
| 121 | /// Abstraction over the pending receive mechanism. |