pub struct ProgressUpdate {
pub current: u64,
pub total: u64,
pub message: Option<String>,
}Expand description
A portable operator-facing progress update. current and total are exact units,
not a floating-point percentage; applications that naturally report percentages use
total = 100. The optional message is deliberately small because the console polls
this value while a job is running—it is status, not another log channel.
Fields§
§current: u64§total: u64§message: Option<String>Trait Implementations§
Source§impl Clone for ProgressUpdate
impl Clone for ProgressUpdate
Source§fn clone(&self) -> ProgressUpdate
fn clone(&self) -> ProgressUpdate
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 moreSource§impl Debug for ProgressUpdate
impl Debug for ProgressUpdate
impl Eq for ProgressUpdate
Source§impl PartialEq for ProgressUpdate
impl PartialEq for ProgressUpdate
impl StructuralPartialEq for ProgressUpdate
Auto Trait Implementations§
impl Freeze for ProgressUpdate
impl RefUnwindSafe for ProgressUpdate
impl Send for ProgressUpdate
impl Sync for ProgressUpdate
impl Unpin for ProgressUpdate
impl UnsafeUnpin for ProgressUpdate
impl UnwindSafe for ProgressUpdate
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