(&mut self)
| 110 | |
| 111 | impl Drop for RateLimiterGroupHandle { |
| 112 | fn drop(&mut self) { |
| 113 | let mut handles = self.inner.handles.lock().unwrap(); |
| 114 | let index = handles |
| 115 | .iter() |
| 116 | .position(|handle| handle.as_raw_fd() == self.eventfd.as_raw_fd()) |
| 117 | .expect("RateLimiterGroupHandle must be subscribed to RateLimiterGroup"); |
| 118 | handles.remove(index); |
| 119 | } |
| 120 | } |
| 121 | |
| 122 | struct RateLimiterGroupInner { |