qubit-fs 0.2.0

Provider-neutral synchronous and asynchronous filesystem abstraction for Rust
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// =============================================================================
//    Copyright (c) 2026 Haixing Hu.
//
//    SPDX-License-Identifier: Apache-2.0
// =============================================================================

//! Completion state for bounded prefix reads.

/// Explains why a bounded prefix read stopped.
#[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,
}