pub struct IndicatifProgress { /* private fields */ }Expand description
Default ProgressTracker implementation backed by
indicatif::MultiProgress.
Renders one bar per table on stderr. Bars are pre-allocated in
ProgressTracker::register and are looked up by Table on
each ProgressTracker::increment call. Lookup uses a RwLock
read on the increment path; this is uncontended after the serial
register phase completes.
Implementations§
Source§impl IndicatifProgress
impl IndicatifProgress
Sourcepub fn new() -> Self
pub fn new() -> Self
Construct an empty tracker. Tables are added via
ProgressTracker::register.
Sourcepub fn log_writer(&self) -> Box<dyn Write + Send + 'static>
pub fn log_writer(&self) -> Box<dyn Write + Send + 'static>
Return a writer that coordinates stderr log writes with progress bar redraws.
Trait Implementations§
Source§impl Debug for IndicatifProgress
impl Debug for IndicatifProgress
Source§impl Default for IndicatifProgress
impl Default for IndicatifProgress
Source§impl ProgressTracker for IndicatifProgress
impl ProgressTracker for IndicatifProgress
Source§fn register(&self, table: Table, total_units: u64)
fn register(&self, table: Table, total_units: u64)
Pre-register a table with its total expected output-unit count. Read more
Source§fn finish(&self)
fn finish(&self)
Called once after the last
Self::increment on the success
path. Implementations should use this for normal success cleanup
and Drop only as an error or panic fallback. The default does
nothing.Auto 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§
impl<T> Allocation for T
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