pub struct ProgressLoggerBuilder { /* private fields */ }
Expand description
Builds a new progress logger. All the configurations are optional,
To obtain a builder, use ProgressLogger::builder()
.
Implementations§
Source§impl ProgressLoggerBuilder
impl ProgressLoggerBuilder
Sourcepub fn with_expected_updates<N: Into<u64>>(self, updates: N) -> Self
pub fn with_expected_updates<N: Into<u64>>(self, updates: N) -> Self
Configure the expected number of updates.
Sourcepub fn with_items_name<S: Into<String>>(self, name: S) -> Self
pub fn with_items_name<S: Into<String>>(self, name: S) -> Self
Set the name of the items being counted.
Sourcepub fn with_frequency(self, freq: Duration) -> Self
pub fn with_frequency(self, freq: Duration) -> Self
Set the frequency of reports on the console.
Sourcepub fn start(self) -> ProgressLogger
pub fn start(self) -> ProgressLogger
Builds the ProgressLogger
, starting the internal timer.
Auto Trait Implementations§
impl Freeze for ProgressLoggerBuilder
impl RefUnwindSafe for ProgressLoggerBuilder
impl Send for ProgressLoggerBuilder
impl Sync for ProgressLoggerBuilder
impl Unpin for ProgressLoggerBuilder
impl UnwindSafe for ProgressLoggerBuilder
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