Handle for canceling an in-flight HTTP request.
| 17 | |
| 18 | /// Handle for canceling an in-flight HTTP request. |
| 19 | pub struct InFlightRequest { |
| 20 | task: Option<JoinHandle<()>>, |
| 21 | } |
| 22 | |
| 23 | impl InFlightRequest { |
| 24 | pub fn cancel(&mut self) -> bool { |
nothing calls this directly
no outgoing calls
no test coverage detected