pub struct TransferStats {
pub payload_bytes_sent: u64,
pub other_bytes_sent: u64,
pub other_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.
other_bytes_read: u64
The number of bytes read from the stream.
In most cases this is just the request, for push requests this is request, size header and hash pairs.
duration: Duration
Total duration from reading the request to transfer completed.
Trait Implementations§
Source§impl Debug for TransferStats
impl Debug for TransferStats
Source§impl<'de> Deserialize<'de> for TransferStats
impl<'de> Deserialize<'de> for TransferStats
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
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