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
sourceimpl Clone for DownloadProgress
impl Clone for DownloadProgress
sourcefn clone(&self) -> DownloadProgress
fn clone(&self) -> DownloadProgress
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations
impl RefUnwindSafe for DownloadProgress
impl Send for DownloadProgress
impl Sync for DownloadProgress
impl Unpin for DownloadProgress
impl UnwindSafe for DownloadProgress
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more