qubit-fs 0.3.3

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.
// =============================================================================

//! Completion state for bounded prefix reads.

/// Explains why a bounded prefix read stopped.
///
/// # Examples
///
/// ```
/// use qubit_fs::read::PrefixReadTermination;
///
/// let termination = PrefixReadTermination::StreamEnded;
/// assert_eq!(termination, PrefixReadTermination::StreamEnded);
/// ```
#[derive(Clone, Copy, Debug, Eq, PartialEq)]
#[non_exhaustive]
pub enum PrefixReadTermination {
    /// The requested prefix limit was reached without probing beyond it.
    LimitReached,
    /// The opened stream returned EOF before the requested prefix limit.
    StreamEnded,
}