qubit_redact/text/diagnostic_write_status.rs
1// =============================================================================
2// Copyright (c) 2026 Haixing Hu.
3//
4// SPDX-License-Identifier: Apache-2.0
5//
6// Licensed under the Apache License, Version 2.0.
7// =============================================================================
8//! Status returned after appending a diagnostic fragment.
9
10/// Result of appending one diagnostic fragment.
11#[derive(Debug, Clone, Copy, PartialEq, Eq)]
12pub enum DiagnosticWriteStatus {
13 /// The complete fragment fit within the output budget.
14 Complete,
15 /// The output budget was exhausted and the truncation marker was emitted.
16 Truncated,
17}