pub struct MultiPhaseProgress { /* private fields */ }
Expand description
Multi-phase progress manager that displays multiple progress bars with completed phases showing as static messages
Implementations§
Source§impl MultiPhaseProgress
impl MultiPhaseProgress
Sourcepub fn start_phase(&self, phase: InstallationPhase, message: Option<&str>)
pub fn start_phase(&self, phase: InstallationPhase, message: Option<&str>)
Start a new phase with a spinner
Sourcepub fn start_phase_with_progress(&self, phase: InstallationPhase, total: usize)
pub fn start_phase_with_progress(&self, phase: InstallationPhase, total: usize)
Start a new phase with a progress bar
Sourcepub fn update_message(&self, message: String)
pub fn update_message(&self, message: String)
Update the message of the current phase
Sourcepub fn update_current_message(&self, message: &str)
pub fn update_current_message(&self, message: &str)
Update the current message for the active phase
Sourcepub fn increment_progress(&self, delta: u64)
pub fn increment_progress(&self, delta: u64)
Increment progress for progress bars
Sourcepub fn set_progress(&self, pos: usize)
pub fn set_progress(&self, pos: usize)
Set progress position for progress bars
Sourcepub fn complete_phase(&self, message: Option<&str>)
pub fn complete_phase(&self, message: Option<&str>)
Complete the current phase and show it as a static message
Sourcepub fn add_progress_bar(&self, total: u64) -> Option<IndicatifBar>
pub fn add_progress_bar(&self, total: u64) -> Option<IndicatifBar>
Create a subordinate progress bar for detailed progress within a phase
Trait Implementations§
Source§impl Clone for MultiPhaseProgress
impl Clone for MultiPhaseProgress
Source§fn clone(&self) -> MultiPhaseProgress
fn clone(&self) -> MultiPhaseProgress
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for MultiPhaseProgress
impl RefUnwindSafe for MultiPhaseProgress
impl Send for MultiPhaseProgress
impl Sync for MultiPhaseProgress
impl Unpin for MultiPhaseProgress
impl UnwindSafe for MultiPhaseProgress
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