pub enum Column {
Animation,
Count,
CountTotal,
ElapsedTime,
Percentage(usize),
Rate,
RemainingTime,
Spinner(Spinner),
Text(String),
Total,
}
Available on crate feature
rich
only.Expand description
Renderable columns for RichProgress.
Variants§
Animation
Progress bar animation display.
If total = 0
, a pulsating animation is shown else a normal animation is shown.
Count
Progress counter display.
CountTotal
Progress formatted counter display i.e. counter/total
.
ElapsedTime
Progress elapsed time display.
Percentage(usize)
Progress percentage done (with precision) display.
Rate
Progress update rate display.
RemainingTime
Progress remaining time (ETA) display.
Spinner(Spinner)
Available on crate feature
spinner
only.Custom spinners display.
Text(String)
Custom text display.
Example
use kdam::Column;
Column::Text("•".to_owned());
Column::Text("[bold red]Downloading".to_owned());
Total
Progress total display.
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Column
impl Send for Column
impl Sync for Column
impl Unpin for Column
impl UnwindSafe for Column
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