pub struct TransferStats {
pub transfer_id: TransferId,
pub chunks_sent: u32,
pub total_chunks: u32,
pub bytes_sent: u64,
pub total_size: u64,
pub elapsed: Duration,
pub bytes_per_second: f64,
pub paused: bool,
}Expand description
Transfer statistics.
Fields§
§transfer_id: TransferIdTransfer ID.
chunks_sent: u32Chunks sent so far.
total_chunks: u32Total chunks.
bytes_sent: u64Bytes sent.
total_size: u64Total size in bytes.
elapsed: DurationTime elapsed.
bytes_per_second: f64Transfer speed in bytes/second.
paused: boolWhether transfer is paused.
Trait Implementations§
Source§impl Clone for TransferStats
impl Clone for TransferStats
Source§fn clone(&self) -> TransferStats
fn clone(&self) -> TransferStats
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 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