pub struct ProgressContext {
pub spinner: ProgressBar,
pub operation: String,
}Expand description
Progress context for coordinating long-running operations
Manages multiple related progress indicators and provides a unified interface for complex operations that involve multiple steps or parallel tasks.
Integrates with Terminal Jarvis theming and provides consistent progress reporting across different operation types.
Fields§
§spinner: ProgressBar§operation: StringImplementations§
Source§impl ProgressContext
impl ProgressContext
pub fn new(operation: &str) -> Self
pub fn update_message(&self, message: &str)
pub fn finish_success(&self, message: &str)
pub fn finish_error(&self, message: &str)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ProgressContext
impl RefUnwindSafe for ProgressContext
impl Send for ProgressContext
impl Sync for ProgressContext
impl Unpin for ProgressContext
impl UnwindSafe for ProgressContext
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