qubit_fs/copy/copy_failure_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// facade tests.
9//! Copy publication state at the point of provider failure.
10
11/// Stable copy state for recovery decisions; error text is not a state
12/// protocol.
13///
14/// # Examples
15///
16/// ```rust
17/// use qubit_fs::copy::CopyFailureState;
18///
19/// assert_eq!(CopyFailureState::Unchanged, CopyFailureState::Unchanged);
20/// ```
21#[derive(Clone, Copy, Debug, Eq, PartialEq)]
22pub enum CopyFailureState {
23 /// No destination effect was published.
24 Unchanged,
25 /// Some destination effects were published.
26 PartiallyPublished,
27 /// The destination was published before a later failure.
28 Published,
29 /// The provider cannot determine publication state.
30 Indeterminate,
31}