pub struct App {
pub stages: Vec<PipelineStage>,
pub overall_progress: f64,
pub current_stage: usize,
pub elapsed_time: Duration,
pub start_time: Instant,
pub functions_count: usize,
pub debt_count: usize,
pub coverage_percent: f64,
pub animation_frame: usize,
pub last_update: Instant,
pub warnings: Vec<ParseWarning>,
pub warnings_visible: bool,
}Expand description
Main TUI application state
Fields§
§stages: Vec<PipelineStage>All pipeline stages
overall_progress: f64Overall progress (0.0 to 1.0)
current_stage: usizeIndex of currently active stage
elapsed_time: DurationTotal elapsed time
start_time: InstantStart time of analysis
functions_count: usizeTotal number of functions analyzed
debt_count: usizeNumber of debt items detected
coverage_percent: f64Test coverage percentage
animation_frame: usizeCurrent animation frame (0-59 for 60 FPS)
last_update: InstantLast update time
warnings: Vec<ParseWarning>Collected parsing/analysis warnings
warnings_visible: boolWhether warnings overlay is visible
Implementations§
Source§impl App
impl App
Sourcepub fn start_stage(&mut self, stage_index: usize)
pub fn start_stage(&mut self, stage_index: usize)
Start a stage (mark as active)
Sourcepub fn complete_stage(&mut self, stage_index: usize, metric: impl Into<String>)
pub fn complete_stage(&mut self, stage_index: usize, metric: impl Into<String>)
Complete a stage with a metric summary
Sourcepub fn update_stage_metric(
&mut self,
stage_index: usize,
metric: impl Into<String>,
)
pub fn update_stage_metric( &mut self, stage_index: usize, metric: impl Into<String>, )
Update stage progress metric
Sourcepub fn update_subtask(
&mut self,
stage_index: usize,
subtask_index: usize,
status: StageStatus,
progress: Option<(usize, usize)>,
)
pub fn update_subtask( &mut self, stage_index: usize, subtask_index: usize, status: StageStatus, progress: Option<(usize, usize)>, )
Update sub-task status
Sourcepub fn update_subtask_labeled(
&mut self,
stage_index: usize,
subtask_index: usize,
status: StageStatus,
progress: Option<(usize, usize)>,
label: Option<&str>,
)
pub fn update_subtask_labeled( &mut self, stage_index: usize, subtask_index: usize, status: StageStatus, progress: Option<(usize, usize)>, label: Option<&str>, )
Update sub-task status, optionally renaming the subtask label.
Sourcepub fn set_overall_progress(&mut self, progress: f64)
pub fn set_overall_progress(&mut self, progress: f64)
Update overall progress (0.0 to 1.0)
Sourcepub fn update_stats(&mut self, functions: usize, debt: usize, coverage: f64)
pub fn update_stats(&mut self, functions: usize, debt: usize, coverage: f64)
Update statistics
Sourcepub fn add_warning(&mut self, file: PathBuf, message: String)
pub fn add_warning(&mut self, file: PathBuf, message: String)
Add a warning to the collection
Sourcepub fn toggle_warnings(&mut self)
pub fn toggle_warnings(&mut self)
Toggle warnings overlay visibility
Sourcepub fn warning_count(&self) -> usize
pub fn warning_count(&self) -> usize
Get count of warnings
Trait Implementations§
Auto Trait Implementations§
impl Freeze for App
impl RefUnwindSafe for App
impl Send for App
impl Sync for App
impl Unpin for App
impl UnsafeUnpin for App
impl UnwindSafe for App
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
Mutably borrows from an owned value. Read more
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>,
Validate that this value satisfies the given predicate. Read more
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>>
Validate with an error-generating function. Read more
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>
Converts
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>
Converts
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