Struct ProgressState
#[non_exhaustive]
pub struct ProgressState { /* private fields */ }
The state of a progress bar at a moment in time.
Implementations
impl ProgressState
fn is_finished(&self) -> boolIndicates that the progress bar finished.
fn fraction(&self) -> f32Returns the completion as a floating-point number between 0 and 1
fn eta(&self) -> DurationThe expected ETA
fn duration(&self) -> DurationThe expected total duration (that is, elapsed time + expected ETA)
fn per_sec(&self) -> f64The number of steps per second
fn elapsed(&self) -> Durationfn pos(&self) -> u64fn set_pos(&mut self, pos: u64)fn len(&self) -> Option<u64>fn set_len(&mut self, len: u64)