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//! Cleanup facts for an isolated provider session.
7
8/// Cleanup progress, independent of the failed operation's publication facts.
9///
10/// # Examples
11///
12/// ```rust
13/// use qubit_fs::error::RecoveryCleanupState;
14///
15/// assert!(matches!(RecoveryCleanupState::Pending, RecoveryCleanupState::Pending));
16/// ```
17#[derive(Clone, Copy, Debug, Eq, PartialEq)]
18pub enum RecoveryCleanupState {
19    /// Explicit cleanup has not started.
20    Pending,
21    /// Explicit cleanup is in progress.
22    Running,
23    /// Provider cleanup completed and must not be repeated.
24    Completed,
25    /// Cleanup failed or was cancelled; retain ownership for reconciliation.
26    Indeterminate,
27}