pub struct ProgressBarWithEta;Expand description
A no-op progress bar when ui feature is disabled.
Implementations§
Source§impl ProgressBarWithEta
impl ProgressBarWithEta
Sourcepub fn new(_enabled: bool, _total: u64, _message: &str) -> Self
pub fn new(_enabled: bool, _total: u64, _message: &str) -> Self
Create a new progress bar (no-op without ui feature).
Sourcepub fn inc_by(&self, _delta: u64)
pub fn inc_by(&self, _delta: u64)
Increment the progress by a specific amount (no-op without ui feature).
Sourcepub fn set_position(&self, _pos: u64)
pub fn set_position(&self, _pos: u64)
Set the current progress position (no-op without ui feature).
Sourcepub fn set_message(&self, _msg: &str)
pub fn set_message(&self, _msg: &str)
Set the progress message (no-op without ui feature).
Sourcepub fn set_length(&self, _len: u64)
pub fn set_length(&self, _len: u64)
Update the total length (no-op without ui feature).
Sourcepub fn finish_with_message(&self, _msg: &str)
pub fn finish_with_message(&self, _msg: &str)
Finish the progress bar (no-op without ui feature).
Sourcepub fn finish_and_clear(&self)
pub fn finish_and_clear(&self)
Finish and clear the progress bar (no-op without ui feature).
Auto Trait Implementations§
impl Freeze for ProgressBarWithEta
impl RefUnwindSafe for ProgressBarWithEta
impl Send for ProgressBarWithEta
impl Sync for ProgressBarWithEta
impl Unpin for ProgressBarWithEta
impl UnsafeUnpin for ProgressBarWithEta
impl UnwindSafe for ProgressBarWithEta
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