pub struct ProgressInfo<'a> {
pub step: ProgressStep,
pub state: ProgressState,
pub object: &'a str,
pub current: u64,
pub total: u64,
pub bytes_done: u64,
pub bytes_total: u64,
pub step_index: u32,
pub step_count: u32,
pub elapsed_ms: f64,
pub overall_fraction: f64,
}Expand description
A single progress event.
object borrows from the native event, so it is only valid inside the
callback — copy it out if you need to keep it.
Fields§
§step: ProgressStepWhich phase this event belongs to.
state: ProgressStateWhere in the phase’s lifetime the event sits.
object: &'a strWhat is being worked on: an archive key, a filename, "ENCODING".
current: u64Items processed in this step.
total: u64Items in this step; 0 when unknown.
bytes_done: u64Bytes transferred in this step; 0 when untracked.
bytes_total: u64Expected bytes for this step; 0 when unknown.
step_index: u32Position of step in the planned sequence.
step_count: u32Steps planned for this operation.
elapsed_ms: f64Milliseconds since the operation started.
overall_fraction: f64Completion of the whole operation, in 0.0..=1.0.
Trait Implementations§
Source§impl<'a> Clone for ProgressInfo<'a>
impl<'a> Clone for ProgressInfo<'a>
Source§fn clone(&self) -> ProgressInfo<'a>
fn clone(&self) -> ProgressInfo<'a>
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<'a> Copy for ProgressInfo<'a>
Auto Trait Implementations§
impl<'a> Freeze for ProgressInfo<'a>
impl<'a> RefUnwindSafe for ProgressInfo<'a>
impl<'a> Send for ProgressInfo<'a>
impl<'a> Sync for ProgressInfo<'a>
impl<'a> Unpin for ProgressInfo<'a>
impl<'a> UnsafeUnpin for ProgressInfo<'a>
impl<'a> UnwindSafe for ProgressInfo<'a>
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