pub struct ProgressUpdate {
pub total: usize,
pub completed: usize,
pub failed: usize,
pub skipped: usize,
pub current_item: Option<String>,
pub estimated_remaining: Option<Duration>,
}Expand description
Progress update for callbacks
Fields§
§total: usizeTotal number of items to process
completed: usizeNumber of successfully completed items
failed: usizeNumber of failed items
skipped: usizeNumber of skipped items
current_item: Option<String>Current item being processed (for display)
estimated_remaining: Option<Duration>Estimated time remaining
Implementations§
Source§impl ProgressUpdate
impl ProgressUpdate
Sourcepub fn percentage(&self) -> f64
pub fn percentage(&self) -> f64
Calculate completion percentage
Sourcepub fn is_complete(&self) -> bool
pub fn is_complete(&self) -> bool
Check if processing is complete
Trait Implementations§
Source§impl Clone for ProgressUpdate
impl Clone for ProgressUpdate
Source§fn clone(&self) -> ProgressUpdate
fn clone(&self) -> ProgressUpdate
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 moreSource§impl Debug for ProgressUpdate
impl Debug for ProgressUpdate
Source§impl<'de> Deserialize<'de> for ProgressUpdate
impl<'de> Deserialize<'de> for ProgressUpdate
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ProgressUpdate
impl RefUnwindSafe for ProgressUpdate
impl Send for ProgressUpdate
impl Sync for ProgressUpdate
impl Unpin for ProgressUpdate
impl UnsafeUnpin for ProgressUpdate
impl UnwindSafe for ProgressUpdate
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