Clear all recorded state for reuse. This retains allocated capacity for efficiency.
(&mut self)
| 436 | /// |
| 437 | /// This retains allocated capacity for efficiency. |
| 438 | pub fn clear(&mut self) { |
| 439 | self.actions.clear(); |
| 440 | self.contents.clear(); |
| 441 | self.updatables.clear(); |
| 442 | self.recorded_inodes.clear(); |
| 443 | self.largest_file = 0; |
| 444 | self.has_binary_files = false; |
| 445 | self.oldest_change = SystemTime::UNIX_EPOCH; |
| 446 | } |
| 447 | |
| 448 | /// Get statistics about the recording. |
| 449 | pub fn stats(&self) -> RecordStats { |