pub struct Progress {
pub bytes_done: u64,
pub bytes_total: u64,
pub start_tsc: u64,
pub last_update_tsc: u64,
}Expand description
Progress information for long-running operations.
Fields§
§bytes_done: u64Bytes completed
bytes_total: u64Total bytes (0 if unknown)
start_tsc: u64Start timestamp
last_update_tsc: u64Last update timestamp
Implementations§
Trait Implementations§
Source§impl From<DownloadProgress> for Progress
impl From<DownloadProgress> for Progress
Source§fn from(p: DownloadProgress) -> Self
fn from(p: DownloadProgress) -> Self
Converts to this type from the input type.
impl Copy for Progress
Auto Trait Implementations§
impl Freeze for Progress
impl RefUnwindSafe for Progress
impl Send for Progress
impl Sync for Progress
impl Unpin 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