pub struct InstallProgress {
pub bytes_downloaded: i64,
pub total_bytes: Option<i64>,
pub total_is_partial: bool,
pub current_file: Option<String>,
}Expand description
Download progress for an install: bytes so far, the total (when known), and which file is in flight.
Serializable because a detached pull writes it into its status.json, which
is the only way an attached client learns how far along the transfer is.
Fields§
§bytes_downloaded: i64Bytes downloaded so far.
total_bytes: Option<i64>The total to download, if known.
total_is_partial: boolWhether total_bytes is a partial/growing estimate (so no fraction).
current_file: Option<String>The file currently downloading, if any.
Implementations§
Trait Implementations§
Source§impl Clone for InstallProgress
impl Clone for InstallProgress
Source§impl Debug for InstallProgress
impl Debug for InstallProgress
Source§impl Default for InstallProgress
impl Default for InstallProgress
Source§impl<'de> Deserialize<'de> for InstallProgress
impl<'de> Deserialize<'de> for InstallProgress
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
impl Eq for InstallProgress
Source§impl Hash for InstallProgress
impl Hash for InstallProgress
Source§impl PartialEq for InstallProgress
impl PartialEq for InstallProgress
Source§impl Serialize for InstallProgress
impl Serialize for InstallProgress
impl StructuralPartialEq for InstallProgress
Auto Trait Implementations§
impl Freeze for InstallProgress
impl RefUnwindSafe for InstallProgress
impl Send for InstallProgress
impl Sync for InstallProgress
impl Unpin for InstallProgress
impl UnsafeUnpin for InstallProgress
impl UnwindSafe for InstallProgress
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