pub struct InstallerProgress { /* private fields */ }Expand description
Progress tracker for installer execution
Implementations§
Source§impl InstallerProgress
impl InstallerProgress
Sourcepub fn with_style(self, style: ProgressStyle) -> Self
pub fn with_style(self, style: ProgressStyle) -> Self
Set display style
Sourcepub fn with_mode(self, mode: ExecutionMode) -> Self
pub fn with_mode(self, mode: ExecutionMode) -> Self
Set execution mode
Sourcepub fn with_artifacts(self, verified: usize, total: usize) -> Self
pub fn with_artifacts(self, verified: usize, total: usize) -> Self
Set artifact counts
Sourcepub fn with_signatures(self, verified: bool) -> Self
pub fn with_signatures(self, verified: bool) -> Self
Set signature verification status
Sourcepub fn with_trace(self, recording: bool) -> Self
pub fn with_trace(self, recording: bool) -> Self
Set trace recording status
Sourcepub fn start_step(&mut self, id: &str, message: &str)
pub fn start_step(&mut self, id: &str, message: &str)
Start a step
Sourcepub fn update_step(&mut self, id: &str, progress: u8, message: &str)
pub fn update_step(&mut self, id: &str, progress: u8, message: &str)
Update step progress
Sourcepub fn complete_step(&mut self, id: &str)
pub fn complete_step(&mut self, id: &str)
Complete a step successfully
Sourcepub fn completed_count(&self) -> usize
pub fn completed_count(&self) -> usize
Get completed step count
Sourcepub fn failed_count(&self) -> usize
pub fn failed_count(&self) -> usize
Get failed step count
Sourcepub fn skipped_count(&self) -> usize
pub fn skipped_count(&self) -> usize
Get skipped step count
Sourcepub fn estimated_remaining(&self) -> Option<Duration>
pub fn estimated_remaining(&self) -> Option<Duration>
Estimate remaining time
Sourcepub fn is_complete(&self) -> bool
pub fn is_complete(&self) -> bool
Check if all steps are complete
Sourcepub fn has_failures(&self) -> bool
pub fn has_failures(&self) -> bool
Check if any steps failed
Sourcepub fn total_steps(&self) -> usize
pub fn total_steps(&self) -> usize
Get total step count
Trait Implementations§
Auto Trait Implementations§
impl Freeze for InstallerProgress
impl RefUnwindSafe for InstallerProgress
impl Send for InstallerProgress
impl Sync for InstallerProgress
impl Unpin for InstallerProgress
impl UnwindSafe for InstallerProgress
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> 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