pub struct DownloadProgress {
pub phase: DownloadPhase,
pub bytes_downloaded: usize,
pub total_bytes: Option<usize>,
pub bytes_written: usize,
}Expand description
Overall download progress.
Fields§
§phase: DownloadPhaseCurrent phase
bytes_downloaded: usizeBytes downloaded
total_bytes: Option<usize>Total expected bytes (if known)
bytes_written: usizeBytes written to disk
Implementations§
Trait Implementations§
Source§impl Clone for DownloadProgress
impl Clone for DownloadProgress
Source§fn clone(&self) -> DownloadProgress
fn clone(&self) -> DownloadProgress
Returns a copy of the value. Read more
1.0.0 · 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 DownloadProgress
impl Debug for DownloadProgress
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 DownloadProgress
Auto Trait Implementations§
impl Freeze for DownloadProgress
impl RefUnwindSafe for DownloadProgress
impl Send for DownloadProgress
impl Sync for DownloadProgress
impl Unpin for DownloadProgress
impl UnwindSafe for DownloadProgress
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