(&self)
| 335 | } |
| 336 | |
| 337 | fn hook_curl_multi_close(&self) -> (Box<BeforeExecuteHook>, Box<AfterExecuteHook>) { |
| 338 | ( |
| 339 | Box::new(|_, execute_data| { |
| 340 | validate_num_args(execute_data, 1)?; |
| 341 | |
| 342 | let multi_id = Self::get_resource_id(execute_data)?; |
| 343 | |
| 344 | CURL_MULTI_INFO_MAP.with(|map| map.borrow_mut().remove(&multi_id)); |
| 345 | |
| 346 | Ok(Box::new(())) |
| 347 | }), |
| 348 | Noop::noop(), |
| 349 | ) |
| 350 | } |
| 351 | |
| 352 | fn get_resource_id(execute_data: &mut ExecuteData) -> anyhow::Result<i64> { |
| 353 | let ch = execute_data.get_parameter(0); |
no test coverage detected