pub struct IndicatifReporterBuilder<F: ProgressFormatter> { /* private fields */ }Expand description
A builder to construct an IndicatifReporter.
Implementations§
Source§impl<F: ProgressFormatter> IndicatifReporterBuilder<F>
impl<F: ProgressFormatter> IndicatifReporterBuilder<F>
Sourcepub fn with_formatter<T: ProgressFormatter>(
self,
formatter: T,
) -> IndicatifReporterBuilder<T>
pub fn with_formatter<T: ProgressFormatter>( self, formatter: T, ) -> IndicatifReporterBuilder<T>
Sets the formatter to use for the progress bars.
Sourcepub fn with_multi_progress(self, multi_progress: MultiProgress) -> Self
pub fn with_multi_progress(self, multi_progress: MultiProgress) -> Self
Sets the [indicatif::MultiProgress] to use for the progress bars.
Sourcepub fn clear_when_done(self, clear_when_done: bool) -> Self
pub fn clear_when_done(self, clear_when_done: bool) -> Self
Sets whether the progress bars are cleared when the transaction is complete.
Sourcepub fn with_placement(self, placement: Placement) -> Self
pub fn with_placement(self, placement: Placement) -> Self
Defines how the progress bars of the reporter are placed relative to any other progress bars that are already present.
Sourcepub fn finish(self) -> IndicatifReporter<F>
pub fn finish(self) -> IndicatifReporter<F>
Finish building IndicatifReporter.
Trait Implementations§
Source§impl<F: Clone + ProgressFormatter> Clone for IndicatifReporterBuilder<F>
impl<F: Clone + ProgressFormatter> Clone for IndicatifReporterBuilder<F>
Source§fn clone(&self) -> IndicatifReporterBuilder<F>
fn clone(&self) -> IndicatifReporterBuilder<F>
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 moreAuto Trait Implementations§
impl<F> Freeze for IndicatifReporterBuilder<F>where
F: Freeze,
impl<F> RefUnwindSafe for IndicatifReporterBuilder<F>where
F: RefUnwindSafe,
impl<F> Send for IndicatifReporterBuilder<F>where
F: Send,
impl<F> Sync for IndicatifReporterBuilder<F>where
F: Sync,
impl<F> Unpin for IndicatifReporterBuilder<F>where
F: Unpin,
impl<F> UnwindSafe for IndicatifReporterBuilder<F>where
F: UnwindSafe,
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,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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 moreCreates a shared type from an unshared type.