pub struct Progress {
pub bytes_sent: u64,
pub chunks_sent: u64,
pub source_bytes: u64,
}Available on (crate features
blocking or tokio or serial) and (crate features blocking or tokio) only.Expand description
Per-chunk progress payload passed to a ProgressCallback. Values are
cumulative across the upload.
Fields§
§bytes_sent: u64Bytes sent so far across all WRITE packets (post-compression).
chunks_sent: u64Number of WRITE packets acknowledged so far.
source_bytes: u64Total bytes read from src (constant across calls within one upload).
Trait Implementations§
impl Copy for Progress
Auto Trait Implementations§
impl Freeze for Progress
impl RefUnwindSafe for Progress
impl Send for Progress
impl Sync for Progress
impl Unpin for Progress
impl UnsafeUnpin for Progress
impl UnwindSafe for Progress
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