pub struct UploadStats {
pub source_bytes: u64,
pub bytes_sent: u64,
pub chunks_sent: u64,
pub compression: Compression,
}Available on (crate features
blocking or tokio or serial) and (crate features blocking or tokio) only.Expand description
Upload statistics returned on success.
Fields§
§source_bytes: u64Bytes read from src.
bytes_sent: u64Bytes written across all WRITE packets (post-compression).
chunks_sent: u64Number of WRITE packets.
compression: CompressionCompression actually used (resolved from Compression::Auto).
Trait Implementations§
Source§impl Clone for UploadStats
impl Clone for UploadStats
Source§fn clone(&self) -> UploadStats
fn clone(&self) -> UploadStats
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 UploadStats
impl Debug for UploadStats
Source§impl Default for UploadStats
impl Default for UploadStats
Source§fn default() -> UploadStats
fn default() -> UploadStats
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for UploadStats
impl RefUnwindSafe for UploadStats
impl Send for UploadStats
impl Sync for UploadStats
impl Unpin for UploadStats
impl UnsafeUnpin for UploadStats
impl UnwindSafe for UploadStats
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