Skip to main content

qubit_fs/temp/
persist_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 state reported after temporary-resource persistence.
9
10/// State of the private temporary container after publication succeeds.
11///
12/// # Examples
13///
14/// ```rust
15/// use qubit_fs::temp::PersistCleanupState;
16///
17/// assert!(matches!(PersistCleanupState::Complete, PersistCleanupState::Complete));
18/// ```
19#[must_use]
20#[non_exhaustive]
21#[derive(Clone, Copy, Debug, Eq, PartialEq)]
22pub enum PersistCleanupState {
23    /// The private temporary container was removed successfully.
24    Complete,
25    /// Publication succeeded, but the private temporary container remains.
26    ResidualTemporaryContainer,
27}