pub struct DownloadProgress {
pub url: String,
pub file: PathBuf,
pub current_file: usize,
pub total_files: usize,
pub downloaded_bytes: u64,
pub total_bytes: u64,
}
Expand description
Progress of an ongoing download.
Fields§
§url: String
The URL of the download.
file: PathBuf
The path where the file is saved.
current_file: usize
Current file index.
total_files: usize
Number of files that are being downloaded.
downloaded_bytes: u64
Bytes that already got downloaded.
total_bytes: u64
Total bytes of the file.
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 moreAuto 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