pub struct Task {
pub id: usize,
pub description: String,
pub total: Option<u64>,
pub completed: u64,
pub start_time: Instant,
pub finished: bool,
pub style: Style,
}Expand description
A task being tracked by the progress bar.
Fields§
§id: usizeTask ID
description: StringTask description
total: Option<u64>Total units of work
completed: u64Completed units
start_time: InstantStart time
finished: boolWhether the task is finished
style: StyleStyle for the progress bar (can be used by columns)
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Task
impl RefUnwindSafe for Task
impl Send for Task
impl Sync for Task
impl Unpin for Task
impl UnwindSafe for Task
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