Explicitly close the storage driver and release any file locks This is called before dropping to ensure clean shutdown
(&mut self)
| 101 | /// Explicitly close the storage driver and release any file locks |
| 102 | /// This is called before dropping to ensure clean shutdown |
| 103 | fn shutdown(&mut self) -> StorageResult<()> { |
| 104 | // Default implementation just flushes |
| 105 | self.flush() |
| 106 | } |
| 107 | } |
| 108 | |
| 109 | // Helper implementation for Box<dyn StorageTree> |