pub struct FileNetworkStats { /* private fields */ }Implementations§
Source§impl FileNetworkStats
impl FileNetworkStats
Sourcepub fn bytes_per_second(&self) -> f64
pub fn bytes_per_second(&self) -> f64
Returns estimated download/upload speed in bytes per second
Sourcepub fn estimated_time(&self) -> f64
pub fn estimated_time(&self) -> f64
Returns estimated finish time in seconds
Sourcepub fn percentage(&self) -> f64
pub fn percentage(&self) -> f64
Returns current percentage
Sourcepub fn current_stats(&self) -> CurrentFileNetworkStats
pub fn current_stats(&self) -> CurrentFileNetworkStats
Returns file stats at this point of time
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FileNetworkStats
impl !RefUnwindSafe for FileNetworkStats
impl Send for FileNetworkStats
impl Sync for FileNetworkStats
impl Unpin for FileNetworkStats
impl !UnwindSafe for FileNetworkStats
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