pub struct ProgressBars { /* private fields */ }
Implementations§
Source§impl ProgressBars
impl ProgressBars
Sourcepub fn are_supported() -> bool
pub fn are_supported() -> bool
Checks if progress bars are supported
Sourcepub fn new(logger: &Logger) -> Option<Self>
pub fn new(logger: &Logger) -> Option<Self>
Creates a new ProgressBars or returns None when not supported.
pub fn add_progress( &self, message: String, style: ProgressBarStyle, total_size: usize, ) -> ProgressBar
Trait Implementations§
Source§impl Clone for ProgressBars
impl Clone for ProgressBars
Source§fn clone(&self) -> ProgressBars
fn clone(&self) -> ProgressBars
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 ProgressBars
impl !RefUnwindSafe for ProgressBars
impl Send for ProgressBars
impl Sync for ProgressBars
impl Unpin for ProgressBars
impl !UnwindSafe for ProgressBars
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