struct IndicatifProgress {
pb: ProgressBar,
}Expand description
ProgressCallback implementation backed by an indicatif::ProgressBar.
Fields§
§pb: ProgressBarTrait Implementations§
Source§impl ProgressCallback for IndicatifProgress
impl ProgressCallback for IndicatifProgress
Source§fn inc(&self, n: u64)
fn inc(&self, n: u64)
Called to advance progress by
n rows. Invoked once per chunk, just
after that chunk finishes parsing, so n counts rows already completed
(the chunk size) — the displayed position stays in step with work done.Source§fn parsing_started(&self, path: &str)
fn parsing_started(&self, path: &str)
Called once when parsing begins for the file at
path. Read moreAuto Trait Implementations§
impl Freeze for IndicatifProgress
impl RefUnwindSafe for IndicatifProgress
impl Send for IndicatifProgress
impl Sync for IndicatifProgress
impl Unpin for IndicatifProgress
impl UnsafeUnpin for IndicatifProgress
impl UnwindSafe for IndicatifProgress
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> 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