pub enum Report {
Started(DownloadId),
Progress(Progress),
Paused(Progress),
Retrying,
Downloading,
Saved {
path: PathBuf,
size: u64,
},
Failed(String),
Cancelled,
}Expand description
How far a download has got, sent to the UI thread.
Variants§
Started(DownloadId)
The call was just made, giving the download this id: everything starts from nothing.
Progress(Progress)
Paused(Progress)
Code paused it, with this much saved.
Retrying
A connection failed in a way that may pass, and the download waits to try again.
Downloading
It is downloading again, after a pause or a wait to retry.
Saved
The file is saved at path, size bytes long.
Failed(String)
Cancelled
Code cancelled it, and what it had saved is removed.
Implementations§
Trait Implementations§
impl Eq for Report
impl StructuralPartialEq for Report
Auto Trait Implementations§
impl Freeze for Report
impl RefUnwindSafe for Report
impl Send for Report
impl Sync for Report
impl Unpin for Report
impl UnsafeUnpin for Report
impl UnwindSafe for Report
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