pub struct Download {
pub id: u64,
pub kind: DownloadKind,
pub label: String,
pub status: DownloadStatus,
pub bytes_downloaded: u64,
pub total_bytes: u64,
pub error: Option<String>,
pub created_at: Instant,
}Expand description
A tracked download operation.
Fields§
§id: u64§kind: DownloadKind§label: String§status: DownloadStatus§bytes_downloaded: u64§total_bytes: u64§error: Option<String>§created_at: InstantAuto Trait Implementations§
impl Freeze for Download
impl RefUnwindSafe for Download
impl Send for Download
impl Sync for Download
impl Unpin for Download
impl UnsafeUnpin for Download
impl UnwindSafe for Download
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