pub struct ProgressReporter { /* private fields */ }
Expand description
Progress reporter for upload operations
Implementations§
Source§impl ProgressReporter
impl ProgressReporter
pub fn new(output: Logger, total_bytes: u64, total_layers: usize) -> Self
pub fn add_layer(&mut self, digest: String, size: u64)
pub fn start_layer(&mut self, digest: &str)
pub fn update_layer_progress(&mut self, digest: &str, uploaded: u64)
pub fn finish_layer(&mut self, digest: &str, _size: u64)
pub fn skip_layer(&mut self, digest: &str)
pub fn fail_layer(&mut self, digest: &str, error: String)
pub fn report_progress(&self)
pub fn report_final_stats(&self)
pub fn get_stats(&self) -> &UploadStats
Auto Trait Implementations§
impl Freeze for ProgressReporter
impl RefUnwindSafe for ProgressReporter
impl Send for ProgressReporter
impl Sync for ProgressReporter
impl Unpin for ProgressReporter
impl UnwindSafe for ProgressReporter
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