Struct cobble_core::utils::DownloadProgress
source · 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 more