pub struct ProgressTracker { /* private fields */ }Implementations§
Source§impl ProgressTracker
impl ProgressTracker
pub fn new( total_size: u64, output: OutputManager, operation_name: String, ) -> Self
pub fn update(&mut self, uploaded: u64)
pub fn finish(&self)
pub fn set_phase(&mut self, phase: &str)
pub fn get_elapsed_time(&self) -> Duration
pub fn get_estimated_remaining(&self, uploaded: u64) -> Option<Duration>
Trait Implementations§
Source§impl Clone for ProgressTracker
impl Clone for ProgressTracker
Source§fn clone(&self) -> ProgressTracker
fn clone(&self) -> ProgressTracker
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 ProgressTracker
impl RefUnwindSafe for ProgressTracker
impl Send for ProgressTracker
impl Sync for ProgressTracker
impl Unpin for ProgressTracker
impl UnwindSafe for ProgressTracker
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