pub struct ProgressReporterBuilder { /* private fields */ }Expand description
Builder for one process-wide progress-reporting session.
Implementations§
Source§impl ProgressReporterBuilder
impl ProgressReporterBuilder
Sourcepub fn identify_tasks_by<I, S>(self, keys: I) -> Self
pub fn identify_tasks_by<I, S>(self, keys: I) -> Self
Selects the exact parameter combination used to identify every task.
Keys may refer to fixed or swept parameters, but the complete selected tuple must be unique for every generated task. Calling this method with no keys is valid only for a one-task project.
Sourcepub fn terminal(self) -> Self
pub fn terminal(self) -> Self
Forces cursor-controlled terminal rendering even when stderr is not a terminal. Most applications should retain automatic output selection.
Sourcepub fn plain(self) -> Self
pub fn plain(self) -> Self
Forces stable line-oriented output suitable for logs and CI systems.
Suppresses rendering while retaining counters and lifecycle validation.
This is useful for tests and embedding applications with their own non-terminal presentation layer. It does not disable progress tracking.
Sourcepub fn start(self) -> Result<ProgressReporter, ReportingError>
pub fn start(self) -> Result<ProgressReporter, ReportingError>
Validates identities, acquires exclusive terminal ownership, and starts the centralized renderer.