/// Clears any previous progress bar or spinner and installs a new progress bar.
Clears any previous progress bar or spinner and installs a new progress bar.
Clears any previous progress bar or spinner and installs a new progress bar .
pub fn progress_bar(&self, msg: &str, len: u64) -> Arc<FastProgressBar> {
        if self.no_progress {
            return Arc::new(FastProgressBar::new_hidden());
        }
        let result = Arc::new(FastProgressBar::new_progress_bar(msg, len));
        *self.progress_bar.lock().unwrap() = Arc::downgrade(&result);
        result
    }
pub fn progress_bar ( & self , msg : & str , len : u64 ) -> Arc < FastProgressBar > { if self . no_progress { return Arc :: new ( FastProgressBar :: new_hidden ( ) ) ; } let result = Arc :: new ( FastProgressBar :: new_progress_bar ( msg , len ) ) ; * self . progress_bar . lock ( ) . unwrap ( ) = Arc :: downgrade ( & result ) ; result }
Clears any previous progress bar or spinner and installs a new progress bar.
Clears any previous progress bar or spinner and installs a new progress bar .
&self
msg
&str
len
u64