Mountain/ApplicationState/Internal/Persistence/
mod.rs

1//! # Persistence Module (Internal)
2//!
3//! ## RESPONSIBILITIES
4//! Handles memento loading and saving for state persistence and crash recovery.
5//!
6//! ## ARCHITECTURAL ROLE
7//! Persistence is part of the **Internal** module, providing file I/O
8//! operations for state persistence.
9//!
10//! ## KEY COMPONENTS
11//! - MementoLoader: Loads memento state from disk
12//! - MementoSaver: Saves memento state to disk
13//!
14//! ## ERROR HANDLING
15//! Functions return Result<T, CommonError> with comprehensive error handling.
16//!
17//! ## LOGGING
18//! All operations are logged at appropriate levels.
19//!
20//! ## PERFORMANCE CONSIDERATIONS
21//! - Synchronous file I/O for initialization
22//! - Proper error handling and recovery
23//!
24//! ## TODO
25//! - [ ] Add checksum validation
26//! - [ ] Implement incremental updates
27//! - [ ] Add compression support
28
29pub mod MementoLoader;
30pub mod MementoSaver;
31
32pub use MementoLoader::*;
33pub use MementoSaver::*;