pub struct DownloadReport {
pub id: String,
pub path: PathBuf,
pub filename: String,
pub downloaded: u64,
pub total: Option<u64>,
pub elapsed: Duration,
pub verified: Option<bool>,
pub paused: bool,
}Fields§
§id: String§path: PathBuf§filename: String§downloaded: u64§total: Option<u64>§elapsed: Duration§verified: Option<bool>None when no checksum was requested.
paused: boolTrue when we stopped early because of Ctrl+C rather than finishing.
Trait Implementations§
Source§impl Clone for DownloadReport
impl Clone for DownloadReport
Source§fn clone(&self) -> DownloadReport
fn clone(&self) -> DownloadReport
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 DownloadReport
impl RefUnwindSafe for DownloadReport
impl Send for DownloadReport
impl Sync for DownloadReport
impl Unpin for DownloadReport
impl UnsafeUnpin for DownloadReport
impl UnwindSafe for DownloadReport
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