pub struct NullProgressRenderer;Expand description
A progress renderer that does nothing. Use this as a ProgressRenderer to disable renderering on anything that requires a renderer
Trait Implementations§
Source§impl ProgressRenderer for NullProgressRenderer
impl ProgressRenderer for NullProgressRenderer
Source§fn on_start(&self, _value: usize, _max: usize)
fn on_start(&self, _value: usize, _max: usize)
Called when the
crate::ProgressBar which holds the instance of Self is spawnedSource§fn on_update(&self, _value: usize, _max: usize)
fn on_update(&self, _value: usize, _max: usize)
Called when the
crate::ProgressBar which holds the instance of Self is updatedAuto Trait Implementations§
impl Freeze for NullProgressRenderer
impl RefUnwindSafe for NullProgressRenderer
impl Send for NullProgressRenderer
impl Sync for NullProgressRenderer
impl Unpin for NullProgressRenderer
impl UnsafeUnpin for NullProgressRenderer
impl UnwindSafe for NullProgressRenderer
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