pub struct DownloadStats {
pub uploaded_bytes: u64,
pub downloaded_bytes: u64,
pub upload_speed: f64,
pub download_speed: f64,
pub elapsed_seconds: u64,
}Expand description
下载统计数据
Fields§
§uploaded_bytes: u64已上传的字节数
downloaded_bytes: u64已下载的字节数
upload_speed: f64上传速度(字节/秒)
download_speed: f64下载速度(字节/秒)
elapsed_seconds: u64已用时间(秒)
Trait Implementations§
Source§impl Clone for DownloadStats
impl Clone for DownloadStats
Source§fn clone(&self) -> DownloadStats
fn clone(&self) -> DownloadStats
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 DownloadStats
impl Debug for DownloadStats
Source§impl Default for DownloadStats
impl Default 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 UnsafeUnpin for DownloadStats
impl UnwindSafe for DownloadStats
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