Disable cleanup. Call this when the operation succeeds and you don't want the directory to be removed. # Example ```rust use atomic::commands::clone::helpers::CleanupGuard; use std::path::PathBuf; let guard = CleanupGuard::new(PathBuf::from("/tmp/test-repo")); guard.disable(); assert!(guard.is_disabled()); ```
(mut self)
| 280 | /// assert!(guard.is_disabled()); |
| 281 | /// ``` |
| 282 | pub fn disable(mut self) { |
| 283 | self.enabled = false; |
| 284 | } |
| 285 | |
| 286 | /// Check if cleanup has been disabled. |
| 287 | pub fn is_disabled(&self) -> bool { |
no outgoing calls