qubit-fs 0.2.0

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.
// =============================================================================
//! Publication certainty after writer cancellation.

/// Provider-confirmed destination state after writer cleanup completes.
///
/// # Examples
///
/// ```rust
/// use qubit_fs::write::WriteAbortOutcome;
///
/// assert!(matches!(WriteAbortOutcome::NotPublished, WriteAbortOutcome::NotPublished));
/// ```
#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
#[must_use]
pub enum WriteAbortOutcome {
    /// Cleanup completed and the destination was proven unchanged.
    NotPublished,
    /// Cleanup completed after the destination had already changed.
    Published,
    /// Cleanup completed, but the destination state remains unknown.
    Indeterminate,
}