Skip to main content

qubit_fs/error/
recovery_cleanup_state.rs

1// =============================================================================
2//    Copyright (c) 2026 Haixing Hu.
3//
4//    SPDX-License-Identifier: Apache-2.0
5//
6//    Licensed under the Apache License, Version 2.0.
7// =============================================================================
8//! Cleanup facts for an isolated provider session.
9
10/// Cleanup progress, independent of the failed operation's publication facts.
11///
12/// # Examples
13///
14/// ```rust
15/// use qubit_fs::error::RecoveryCleanupState;
16///
17/// assert!(matches!(RecoveryCleanupState::Pending, RecoveryCleanupState::Pending));
18/// ```
19#[derive(Clone, Copy, Debug, Eq, PartialEq)]
20pub enum RecoveryCleanupState {
21    /// Explicit cleanup has not started.
22    Pending,
23    /// Explicit cleanup is in progress.
24    Running,
25    /// Provider cleanup completed and must not be repeated.
26    Completed,
27    /// Cleanup failed or was cancelled; retain ownership for reconciliation.
28    Indeterminate,
29}