Returns all [`RequestDetails`] accumulated in this [`InstrumentedObjectStore`] and clears the stored requests
(&self)
| 160 | /// Returns all [`RequestDetails`] accumulated in this [`InstrumentedObjectStore`] and clears |
| 161 | /// the stored requests |
| 162 | pub fn take_requests(&self) -> Vec<RequestDetails> { |
| 163 | let mut req = self.requests.lock(); |
| 164 | |
| 165 | req.drain(..).collect() |
| 166 | } |
| 167 | |
| 168 | fn enabled(&self) -> bool { |
| 169 | self.instrument_mode.load(Ordering::Relaxed) |
no test coverage detected