pub struct ProgressManager { /* private fields */ }Expand description
Centralized progress manager for coordinating multiple progress bars
Implementations§
Source§impl ProgressManager
impl ProgressManager
Sourcepub fn new(config: ProgressConfig) -> Self
pub fn new(config: ProgressConfig) -> Self
Create a new progress manager with the given configuration
Sourcepub fn init_global(config: ProgressConfig)
pub fn init_global(config: ProgressConfig)
Initialize the global progress manager
Sourcepub fn create_bar(&self, len: u64, template: &str) -> ProgressBar
pub fn create_bar(&self, len: u64, template: &str) -> ProgressBar
Create a progress bar with the given length and template
Returns a hidden progress bar if progress should not be shown or if TUI is active
Sourcepub fn create_spinner(&self, msg: &str) -> ProgressBar
pub fn create_spinner(&self, msg: &str) -> ProgressBar
Create a spinner progress bar with the given message
Returns a hidden progress bar if progress should not be shown or if TUI is active
Sourcepub fn create_counter(&self, template: &str, msg: &str) -> ProgressBar
pub fn create_counter(&self, template: &str, msg: &str) -> ProgressBar
Create a progress bar that shows counts without a known total
Sourcepub fn is_tui_active(&self) -> Option<bool>
pub fn is_tui_active(&self) -> Option<bool>
Check if TUI is currently active
Sourcepub fn clear(&self) -> Result<()>
pub fn clear(&self) -> Result<()>
Clear all progress bars from the display
This should be called before printing final output to ensure progress bars don’t interfere with the terminal display.
Sourcepub fn tui_start_stage(&self, stage_index: usize)
pub fn tui_start_stage(&self, stage_index: usize)
Start a pipeline stage in TUI
Sourcepub fn tui_complete_stage(&self, stage_index: usize, metric: impl Into<String>)
pub fn tui_complete_stage(&self, stage_index: usize, metric: impl Into<String>)
Complete a pipeline stage in TUI
Sourcepub fn tui_update_metric(&self, stage_index: usize, metric: impl Into<String>)
pub fn tui_update_metric(&self, stage_index: usize, metric: impl Into<String>)
Update stage metric in TUI
Sourcepub fn tui_update_subtask(
&self,
stage_index: usize,
subtask_index: usize,
status: StageStatus,
progress: Option<(usize, usize)>,
)
pub fn tui_update_subtask( &self, stage_index: usize, subtask_index: usize, status: StageStatus, progress: Option<(usize, usize)>, )
Update subtask status in TUI
Sourcepub fn tui_set_progress(&self, progress: f64)
pub fn tui_set_progress(&self, progress: f64)
Update overall progress in TUI
Sourcepub fn tui_update_stats(&self, functions: usize, debt: usize, coverage: f64)
pub fn tui_update_stats(&self, functions: usize, debt: usize, coverage: f64)
Update statistics in TUI
Sourcepub fn tui_update_counts(&self, functions: usize, debt: usize)
pub fn tui_update_counts(&self, functions: usize, debt: usize)
Update only function and debt counts in TUI
Sourcepub fn tui_update_coverage(&self, coverage: f64)
pub fn tui_update_coverage(&self, coverage: f64)
Update only coverage percentage in TUI
Sourcepub fn tui_render(&self)
pub fn tui_render(&self)
Render a TUI frame (now no-op, background thread handles rendering at 60 FPS)
Sourcepub fn tui_cleanup(&self)
pub fn tui_cleanup(&self)
Cleanup TUI on completion
Trait Implementations§
Source§impl Clone for ProgressManager
impl Clone for ProgressManager
Source§fn clone(&self) -> ProgressManager
fn clone(&self) -> ProgressManager
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreAuto Trait Implementations§
impl Freeze for ProgressManager
impl !RefUnwindSafe for ProgressManager
impl Send for ProgressManager
impl Sync for ProgressManager
impl Unpin for ProgressManager
impl UnsafeUnpin for ProgressManager
impl !UnwindSafe for ProgressManager
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> EnsureExt<T> for T
impl<T> EnsureExt<T> for T
Source§fn ensure<P, E>(self, predicate: P, error: E) -> Validation<T, NonEmptyVec<E>>where
P: Predicate<T>,
fn ensure<P, E>(self, predicate: P, error: E) -> Validation<T, NonEmptyVec<E>>where
P: Predicate<T>,
Source§fn ensure_with<P, E, F>(
self,
predicate: P,
error_fn: F,
) -> Validation<T, NonEmptyVec<E>>
fn ensure_with<P, E, F>( self, predicate: P, error_fn: F, ) -> Validation<T, NonEmptyVec<E>>
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more