pub struct DownloadInfo {
pub id: u64,
pub kind: DownloadKind,
pub label: String,
pub status: String,
pub bytes_downloaded: u64,
pub total_bytes: u64,
pub error: Option<String>,
pub alive_secs: u64,
}Expand description
Summary of a download in the registry.
Fields§
§id: u64Download identifier.
kind: DownloadKindKind of download.
label: StringHuman-readable label.
status: StringCurrent status.
bytes_downloaded: u64Bytes downloaded so far.
total_bytes: u64Total expected bytes (0 if unknown).
error: Option<String>Error message (if failed).
alive_secs: u64Seconds since download started.
Trait Implementations§
Source§impl Clone for DownloadInfo
impl Clone for DownloadInfo
Source§fn clone(&self) -> DownloadInfo
fn clone(&self) -> DownloadInfo
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 moreSource§impl Debug for DownloadInfo
impl Debug for DownloadInfo
Source§impl<'de> Deserialize<'de> for DownloadInfo
impl<'de> Deserialize<'de> for DownloadInfo
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for DownloadInfo
impl RefUnwindSafe for DownloadInfo
impl Send for DownloadInfo
impl Sync for DownloadInfo
impl Unpin for DownloadInfo
impl UnsafeUnpin for DownloadInfo
impl UnwindSafe for DownloadInfo
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