qubit_fs/options/progress_policy.rs
1/*******************************************************************************
2 *
3 * Copyright (c) 2026 Haixing Hu.
4 *
5 * SPDX-License-Identifier: Apache-2.0
6 *
7 * Licensed under the Apache License, Version 2.0.
8 *
9 ******************************************************************************/
10//! Copy progress collection policy.
11
12/// Progress collection policy.
13#[derive(Clone, Copy, Debug, Eq, PartialEq)]
14pub enum ProgressPolicy {
15 /// Do not collect progress beyond final provider output.
16 None,
17 /// Collect final counts only.
18 CountOnly,
19 /// Request detailed progress reporting when supported.
20 Detailed,
21}
22
23impl Default for ProgressPolicy {
24 /// Collects final counts by default.
25 #[inline]
26 fn default() -> Self {
27 Self::CountOnly
28 }
29}