Sets the reference to the current ProgressBar for the writer
(pb: Option<WeakProgressBar>)
| 56 | |
| 57 | /// Sets the reference to the current ProgressBar for the writer |
| 58 | pub(crate) fn set_progress_bar(pb: Option<WeakProgressBar>) { |
| 59 | *CURRENT_PROGRESS_BAR.write() = pb; |
| 60 | } |
| 61 | |
| 62 | /// Returns the Progressbar, if it exists, otherwise "None" |
| 63 | pub(crate) fn get_progress_bar() -> Option<ProgressBar> { |
no test coverage detected