qubit-fs 0.2.2

Provider-neutral synchronous and asynchronous filesystem abstraction for Rust
Documentation
// =============================================================================
//    Copyright (c) 2026 Haixing Hu.
//
//    SPDX-License-Identifier: Apache-2.0
//
//    Licensed under the Apache License, Version 2.0.
// =============================================================================
// facade tests.
//! Rename publication state at the point of provider failure.

/// Stable rename state for recovery decisions; error text is not a state
/// protocol.
///
/// # Examples
///
/// ```rust
/// use qubit_fs::rename::RenameFailureState;
///
/// assert!(matches!(RenameFailureState::Unchanged, RenameFailureState::Unchanged));
/// ```
#[derive(Clone, Copy, Debug, Eq, PartialEq)]
pub enum RenameFailureState {
    /// Source and target were not changed.
    Unchanged,
    /// The rename completed before a later failure.
    Renamed,
    /// The provider cannot determine whether rename completed.
    Indeterminate,
}