pub struct MultiProgressWrapper { /* private fields */ }
Expand description
A wrapper around MultiProgressBar
for tracking multiple progress bars during file downloads.
This struct implements the Progress
trait and provides methods to handle the start,
progress updates, and finish events of multiple download operations simultaneously.
Implementations§
Trait Implementations§
Source§impl Clone for MultiProgressWrapper
impl Clone for MultiProgressWrapper
Source§fn clone(&self) -> MultiProgressWrapper
fn clone(&self) -> MultiProgressWrapper
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 Default for MultiProgressWrapper
impl Default for MultiProgressWrapper
Source§fn default() -> MultiProgressWrapper
fn default() -> MultiProgressWrapper
Returns the “default value” for a type. Read more
Source§impl Progress for MultiProgressWrapper
impl Progress for MultiProgressWrapper
Source§fn on_start(&mut self, unit: &ProgressUnit) -> Result<(), OpsError>
fn on_start(&mut self, unit: &ProgressUnit) -> Result<(), OpsError>
Called when a download starts.
Initializes a new progress bar within the multi-progress bar system.
Source§fn on_progress(&mut self, unit: &ProgressUnit) -> Result<(), OpsError>
fn on_progress(&mut self, unit: &ProgressUnit) -> Result<(), OpsError>
Called periodically to update the progress of a download.
Updates the position of the current progress bar based on the downloaded bytes.
Auto Trait Implementations§
impl Freeze for MultiProgressWrapper
impl RefUnwindSafe for MultiProgressWrapper
impl Send for MultiProgressWrapper
impl Sync for MultiProgressWrapper
impl Unpin for MultiProgressWrapper
impl UnwindSafe for MultiProgressWrapper
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