pub struct LayerUploadStats {
pub digest: String,
pub size: u64,
pub uploaded: u64,
pub start_time: Instant,
pub status: LayerUploadStatus,
}Expand description
Layer-specific upload statistics
Fields§
§digest: String§size: u64§uploaded: u64§start_time: Instant§status: LayerUploadStatusImplementations§
Source§impl LayerUploadStats
impl LayerUploadStats
pub fn new(digest: String, size: u64) -> Self
pub fn start(&mut self)
pub fn update_progress(&mut self, uploaded: u64)
pub fn complete(&mut self)
pub fn skip(&mut self)
pub fn fail(&mut self, error: String)
pub fn get_progress_percentage(&self) -> f64
pub fn get_speed(&self) -> u64
Trait Implementations§
Source§impl Clone for LayerUploadStats
impl Clone for LayerUploadStats
Source§fn clone(&self) -> LayerUploadStats
fn clone(&self) -> LayerUploadStats
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 moreAuto Trait Implementations§
impl Freeze for LayerUploadStats
impl RefUnwindSafe for LayerUploadStats
impl Send for LayerUploadStats
impl Sync for LayerUploadStats
impl Unpin for LayerUploadStats
impl UnwindSafe for LayerUploadStats
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