pub struct ArchiveProgress {
pub phase: ArchiveProgressPhase,
pub total_files: usize,
pub completed_files: usize,
pub succeeded_files: usize,
pub failed_files: usize,
pub bytes_written: u64,
pub active_file: Option<ArchiveProgressFile>,
pub active_bytes_written: u64,
pub active_total_bytes: Option<u64>,
}Expand description
Snapshot emitted during dataset archive downloads.
Fields§
§phase: ArchiveProgressPhaseCurrent archive phase.
total_files: usizeTotal queued files.
completed_files: usizeCompleted file attempts.
succeeded_files: usizeSuccessful file downloads.
failed_files: usizeFailed file downloads.
bytes_written: u64Bytes written by successful downloads.
active_file: Option<ArchiveProgressFile>One active file, if any worker is currently downloading.
active_bytes_written: u64Bytes streamed for the active file.
active_total_bytes: Option<u64>Expected active file byte size when known.
Trait Implementations§
Source§impl Clone for ArchiveProgress
impl Clone for ArchiveProgress
Source§fn clone(&self) -> ArchiveProgress
fn clone(&self) -> ArchiveProgress
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 ArchiveProgress
impl Debug for ArchiveProgress
impl Eq for ArchiveProgress
Source§impl PartialEq for ArchiveProgress
impl PartialEq for ArchiveProgress
impl StructuralPartialEq for ArchiveProgress
Auto Trait Implementations§
impl Freeze for ArchiveProgress
impl RefUnwindSafe for ArchiveProgress
impl Send for ArchiveProgress
impl Sync for ArchiveProgress
impl Unpin for ArchiveProgress
impl UnsafeUnpin for ArchiveProgress
impl UnwindSafe for ArchiveProgress
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