pub struct ProgressBar {
pub state: ProgressBarState,
pub value: usize,
}Expand description
ProgressBar represents the terminal progress bar.
Support depends on the terminal.
See https://learn.microsoft.com/en-us/windows/terminal/tutorials/progress-bar-sequences
Fields§
§state: ProgressBarStateState is the current state of the progress bar. It can be one of ProgressBarState::ProgressBarNone, ProgressBarState::ProgressBarDefault, ProgressBarState::ProgressBarError, ProgressBarState::ProgressBarIndeterminate, and ProgressBarState::ProgressBarWarning.
value: usizeValue is the current value of the progress bar. It should be between 0 and 100.
Trait Implementations§
Source§impl Clone for ProgressBar
impl Clone for ProgressBar
Source§fn clone(&self) -> ProgressBar
fn clone(&self) -> ProgressBar
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ProgressBar
Source§impl Debug for ProgressBar
impl Debug for ProgressBar
impl Eq for ProgressBar
Source§impl PartialEq for ProgressBar
impl PartialEq for ProgressBar
impl StructuralPartialEq for ProgressBar
Auto Trait Implementations§
impl Freeze for ProgressBar
impl RefUnwindSafe for ProgressBar
impl Send for ProgressBar
impl Sync for ProgressBar
impl Unpin for ProgressBar
impl UnsafeUnpin for ProgressBar
impl UnwindSafe for ProgressBar
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