mod.rs (998B)
1 //! Private crash-recovery marker mechanics for governed restore. 2 3 mod finalize; 4 mod marker; 5 mod recover; 6 mod stage; 7 8 #[cfg(all(test, any(target_os = "linux", target_os = "macos")))] 9 #[cfg_attr(coverage_nightly, coverage(off))] 10 mod process_tests; 11 12 pub use finalize::finalize_staged_restore; 13 pub use stage::{StagedServiceRestore, stage_verified_restore}; 14 15 #[cfg(any(target_os = "linux", target_os = "macos"))] 16 pub(crate) use recover::refuse_unresolved_recovery; 17 18 #[cfg(any(target_os = "linux", target_os = "macos"))] 19 pub(crate) use recover::{recover_for_open, recover_for_open_with_intent}; 20 21 #[allow(unused_imports)] 22 pub(crate) use marker::{ 23 BACKUP_FILE_NAME, LIVE_FILE_NAME, MARKER_FILE_NAME, MARKER_NEXT_FILE_NAME, 24 RestoreArtifactExpectation, RestoreMarkerContractError, RestoreRecoveryLayout, 25 RestoreRecoveryMarker, RestoreRecoveryPhase, STAGED_FILE_NAME, 26 }; 27 28 #[cfg(any(target_os = "linux", target_os = "macos"))] 29 #[allow(unused_imports)] 30 pub(crate) use marker::RestoreMarkerBinding;