pub struct ProgressInfo {
pub current_step: usize,
pub total_steps: usize,
pub operation: String,
pub items_processed: usize,
pub total_items: usize,
pub start_time: Instant,
}
Expand description
Progress tracking information
Fields§
§current_step: usize
Current step
total_steps: usize
Total steps
operation: String
Current operation description
items_processed: usize
Items processed in current step
total_items: usize
Total items in current step
start_time: Instant
Start time of current operation
Implementations§
Source§impl ProgressInfo
impl ProgressInfo
Sourcepub fn next_step(&mut self, operation: String, total_items: usize)
pub fn next_step(&mut self, operation: String, total_items: usize)
Update progress to next step
Sourcepub fn update_items(&mut self, processed: usize)
pub fn update_items(&mut self, processed: usize)
Update items processed in current step
Sourcepub fn get_overall_progress(&self) -> f64
pub fn get_overall_progress(&self) -> f64
Get overall progress percentage
Sourcepub fn get_step_progress(&self) -> f64
pub fn get_step_progress(&self) -> f64
Get current step progress percentage
Trait Implementations§
Source§impl Clone for ProgressInfo
impl Clone for ProgressInfo
Source§fn clone(&self) -> ProgressInfo
fn clone(&self) -> ProgressInfo
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 ProgressInfo
impl RefUnwindSafe for ProgressInfo
impl Send for ProgressInfo
impl Sync for ProgressInfo
impl Unpin for ProgressInfo
impl UnwindSafe for ProgressInfo
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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