qubit_codec/transcode/io/async_transcode_decode_step.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//! Result type for one asynchronous decode operation.
9
10use crate::TranscodeProgress;
11
12/// Result of one cancellation-safe asynchronous decode operation.
13#[derive(Clone, Copy, Debug, Eq, PartialEq)]
14pub enum AsyncTranscodeDecodeStep {
15 /// The wrapped input reached EOF with no unread units.
16 EndOfInput,
17 /// The decoder consumed input or initialized output without another await.
18 Progress(TranscodeProgress),
19}