Struct indicatif::ProgressState
[−]
[src]
pub struct ProgressState { /* fields omitted */ }
The state of a progress bar at a moment in time.
Methods
impl ProgressState
[src]
fn current_tick_char(&self) -> char
Returns the character that should be drawn for the current spinner character.
fn has_spinner(&self) -> bool
Indicates that a spinner should be drawn.
fn has_progress(&self) -> bool
Indicates that a progress bar should be drawn.
fn is_finished(&self) -> bool
Indicates that the progress bar finished.
fn should_render(&self) -> bool
Returns false
if the progress bar should no longer be
drawn.
fn percent(&self) -> f32
Returns the completion in percent
fn position(&self) -> (u64, u64)
Returns the position of the status bar as (pos, len)
tuple.
fn message(&self) -> &str
Returns the current message of the progress bar.
fn width(&self) -> usize
The entire draw width
fn avg_time_per_step(&self) -> Duration
Return the current average time per step
fn eta(&self) -> Duration
The expected ETA