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
BT download statistics
Fields§
§uploaded_bytes: u64Uploaded bytes
downloaded_bytes: u64Downloaded bytes
upload_speed: f64Upload speed (bytes/sec)
download_speed: f64Download speed (bytes/sec)
elapsed_seconds: u64Elapsed time (seconds)
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
Source§fn default() -> DownloadStats
fn default() -> DownloadStats
Returns the “default value” for a type. Read more
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