pub struct DownloadStatistics {
pub queued: usize,
pub starting: usize,
pub downloading: usize,
pub paused: usize,
pub completed: usize,
pub failed: usize,
pub cancelled: usize,
pub total_speed_bps: f64,
pub downloaded_bytes: u64,
pub total_data_bytes: u64,
}Expand description
Download statistics
Fields§
§queued: usize§starting: usize§downloading: usize§paused: usize§completed: usize§failed: usize§cancelled: usize§total_speed_bps: f64§downloaded_bytes: u64§total_data_bytes: u64Implementations§
Source§impl DownloadStatistics
impl DownloadStatistics
pub fn active_downloads(&self) -> usize
pub fn finished_downloads(&self) -> usize
pub fn overall_percentage(&self) -> f32
Trait Implementations§
Source§impl Debug for DownloadStatistics
impl Debug for DownloadStatistics
Source§impl Default for DownloadStatistics
impl Default for DownloadStatistics
Source§fn default() -> DownloadStatistics
fn default() -> DownloadStatistics
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for DownloadStatistics
impl RefUnwindSafe for DownloadStatistics
impl Send for DownloadStatistics
impl Sync for DownloadStatistics
impl Unpin for DownloadStatistics
impl UnsafeUnpin for DownloadStatistics
impl UnwindSafe for DownloadStatistics
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more