salmon_core/progress.rs
1//! Shared live-progress counters for the quantification drivers.
2
3use std::sync::atomic::AtomicU64;
4
5/// Lock-free counters a quant driver updates as it runs, so a UI (e.g. a CLI
6/// progress bar) can poll mapping progress while quantification is in flight.
7/// Shared by both the reads-mode (`salmon-quant`) and alignment-mode
8/// (`salmon-align`) drivers.
9#[derive(Debug, Default)]
10pub struct ProgressCounters {
11 /// fragments observed so far
12 pub processed: AtomicU64,
13 /// fragments mapped so far
14 pub mapped: AtomicU64,
15}