pub struct ProgressEvent {
pub filename: String,
pub bytes_downloaded: u64,
pub bytes_total: u64,
pub percent: f64,
pub files_remaining: usize,
}Expand description
A progress event emitted during download.
Passed to the on_progress callback on crate::FetchConfig.
Fields§
§filename: StringThe filename currently being downloaded.
bytes_downloaded: u64Bytes downloaded so far for this file.
bytes_total: u64Total size of this file in bytes (0 if unknown).
percent: f64Download percentage for this file (0.0–100.0).
files_remaining: usizeNumber of files still remaining (after this one).
Trait Implementations§
Source§impl Clone for ProgressEvent
impl Clone for ProgressEvent
Source§fn clone(&self) -> ProgressEvent
fn clone(&self) -> ProgressEvent
Returns a duplicate 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 ProgressEvent
impl RefUnwindSafe for ProgressEvent
impl Send for ProgressEvent
impl Sync for ProgressEvent
impl Unpin for ProgressEvent
impl UnsafeUnpin for ProgressEvent
impl UnwindSafe for ProgressEvent
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