pub struct CliProgressBar {
pub value: usize,
pub total: usize,
pub message: String,
}Expand description
A progress bar for displaying task completion in the terminal.
This struct maintains the state of a progress bar and provides methods to update and render it. The bar displays percentage, a message, and a visual indicator of progress.
Fields§
§value: usizeCurrent value of progress (0 to total).
total: usizeTotal value representing 100% completion.
message: StringMessage displayed alongside the progress bar.
Implementations§
Auto Trait Implementations§
impl Freeze for CliProgressBar
impl RefUnwindSafe for CliProgressBar
impl Send for CliProgressBar
impl Sync for CliProgressBar
impl Unpin for CliProgressBar
impl UnwindSafe for CliProgressBar
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more