pub struct DownloadStats {
pub start_time: SystemTime,
pub end_time: Option<SystemTime>,
pub total_bytes: AtomicU64,
pub successful_downloads: AtomicUsize,
pub failed_downloads: AtomicUsize,
pub retry_count: AtomicUsize,
pub average_speed: AtomicU64,
}Fields§
§start_time: SystemTime§end_time: Option<SystemTime>§total_bytes: AtomicU64§successful_downloads: AtomicUsize§failed_downloads: AtomicUsize§retry_count: AtomicUsize§average_speed: AtomicU64Implementations§
Source§impl DownloadStats
impl DownloadStats
pub fn record_success(&self, bytes: u64)
pub fn record_failure(&self)
pub fn record_retry(&self)
Trait Implementations§
Source§impl Debug for DownloadStats
impl Debug for DownloadStats
Auto Trait Implementations§
impl !Freeze for DownloadStats
impl RefUnwindSafe for DownloadStats
impl Send for DownloadStats
impl Sync for DownloadStats
impl Unpin for DownloadStats
impl UnwindSafe for DownloadStats
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more