pub struct CliProgressHandler {
progress_bar: ProgressBar,
success_bar: ProgressBar,
failure_bar: ProgressBar,
success_count: Arc<AtomicU64>,
failure_count: Arc<AtomicU64>,
}
Expand description
For CLI progress bar
Fields§
§progress_bar: ProgressBar
§success_bar: ProgressBar
§failure_bar: ProgressBar
§success_count: Arc<AtomicU64>
§failure_count: Arc<AtomicU64>
Implementations§
Trait Implementations§
Source§impl Clone for CliProgressHandler
impl Clone for CliProgressHandler
Source§fn clone(&self) -> CliProgressHandler
fn clone(&self) -> CliProgressHandler
Returns a copy 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 moreSource§impl Debug for CliProgressHandler
impl Debug for CliProgressHandler
Source§impl ProgressHandler for CliProgressHandler
impl ProgressHandler for CliProgressHandler
Source§fn on_set_total(&mut self, total: usize)
fn on_set_total(&mut self, total: usize)
Sets the total number of items to process. Read more
Source§fn success_inc(&self, progress: u64)
fn success_inc(&self, progress: u64)
Increments success count. Read more
Source§fn failure_inc(&self, progress: u64)
fn failure_inc(&self, progress: u64)
Increments failure count. Read more
Source§fn on_processing_path(&self, path: &Path)
fn on_processing_path(&self, path: &Path)
The path for the current progress state. Read more
Auto Trait Implementations§
impl Freeze for CliProgressHandler
impl RefUnwindSafe for CliProgressHandler
impl Send for CliProgressHandler
impl Sync for CliProgressHandler
impl Unpin for CliProgressHandler
impl UnwindSafe for CliProgressHandler
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more