Skip to main content

qubit_fs/copy/
copy_method.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//! Copy method model.
9
10/// Method used to complete a copy operation.
11///
12/// # Examples
13///
14/// ```rust
15/// use qubit_fs::copy::CopyMethod;
16///
17/// assert_eq!(CopyMethod::Streamed, CopyMethod::Streamed);
18/// ```
19#[derive(Clone, Copy, Debug, Eq, PartialEq)]
20pub enum CopyMethod {
21    /// Provider-native copy.
22    Native,
23    /// Storage-level clone or reflink copy.
24    Clone,
25    /// Server-side copy.
26    ServerSide,
27    /// Client-side stream copy.
28    Streamed,
29    /// Mixed copy strategy.
30    Mixed,
31}