pub struct TransferStats {
pub payload_bytes_sent: u64,
pub other_bytes_sent: u64,
pub bytes_read: u64,
pub duration: Duration,
}
Expand description
Statistics about a successful or failed transfer.
Fields§
§payload_bytes_sent: u64
The number of bytes sent that are part of the payload.
other_bytes_sent: u64
The number of bytes sent that are not part of the payload.
Hash pairs and the initial size header.
bytes_read: u64
The number of bytes read from the stream.
This is the size of the request.
duration: Duration
Total duration from reading the request to transfer completed.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TransferStats
impl RefUnwindSafe for TransferStats
impl Send for TransferStats
impl Sync for TransferStats
impl Unpin for TransferStats
impl UnwindSafe for TransferStats
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