1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
/// Progress callback for operations that need to report progress
///
/// This is a generic callback type that can be used by any operation
/// that needs to report progress updates. It follows the Observer pattern
/// to decouple progress reporting from the operation itself.
///
/// # Arguments
/// * `current` - Current progress value (e.g., items processed)
/// * `total` - Total expected value (e.g., total items to process)
///
/// # Example
/// ```ignore
/// let callback: ProgressCallback = Box::new(|current, total| {
/// println!("Progress: {}/{}", current, total);
/// });
/// callback(5, 10); // Prints: Progress: 5/10
/// ```
///
/// # Note
/// The callback must be `Send` to support async operations.
pub type ProgressCallback<'a> = ;
/// ProgressReporter port for reporting progress during operations
///
/// This port abstracts progress reporting (e.g., to stderr)
/// to provide user feedback during long-running operations.