pub enum DownloadEvent {
Start {
filename: String,
download_id: u64,
total_bytes: Option<u64>,
},
Failed {
error: String,
download_id: u64,
},
Progress {
download_id: u64,
bytes: u64,
},
Finish {
download_id: u64,
},
}Variants§
Trait Implementations§
Source§impl Clone for DownloadEvent
impl Clone for DownloadEvent
Auto Trait Implementations§
impl Freeze for DownloadEvent
impl RefUnwindSafe for DownloadEvent
impl Send for DownloadEvent
impl Sync for DownloadEvent
impl Unpin for DownloadEvent
impl UnsafeUnpin for DownloadEvent
impl UnwindSafe for DownloadEvent
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