qubit_fs/read/prefix_read_termination.rs
1// =============================================================================
2// Copyright (c) 2026 Haixing Hu.
3//
4// SPDX-License-Identifier: Apache-2.0
5// =============================================================================
6
7//! Completion state for bounded prefix reads.
8
9/// Explains why a bounded prefix read stopped.
10#[derive(Clone, Copy, Debug, Eq, PartialEq)]
11#[non_exhaustive]
12pub enum PrefixReadTermination {
13 /// The requested prefix limit was reached without probing beyond it.
14 LimitReached,
15 /// The opened stream returned EOF before the requested prefix limit.
16 StreamEnded,
17}