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.
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§fn clone(&self) -> InstallProgress
fn clone(&self) -> InstallProgress
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 InstallProgress
impl Debug for InstallProgress
Source§impl Default for InstallProgress
impl Default for InstallProgress
Source§fn default() -> InstallProgress
fn default() -> InstallProgress
Returns the “default value” for a type. Read more
impl Eq for InstallProgress
Source§impl Hash for InstallProgress
impl Hash for InstallProgress
Source§impl PartialEq for InstallProgress
impl PartialEq 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