pub struct Progress {
pub current: u64,
pub total: Option<u64>,
pub percent: Option<f32>,
pub message: Option<String>,
}Expand description
Progress information for a long-running task.
Fields§
§current: u64Number of units completed so far.
total: Option<u64>Total number of units, if known.
percent: Option<f32>Completion percentage derived from current / total, if total is known.
message: Option<String>Optional human-readable status message.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Progress
impl RefUnwindSafe for Progress
impl Send for Progress
impl Sync for Progress
impl Unpin for Progress
impl UnsafeUnpin for Progress
impl UnwindSafe for Progress
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