pub struct DownloadProgressRecord {
pub elapsed_time: Duration,
pub last_elapsed_time: Duration,
pub last_throughput: f32,
pub total_throughput: f32,
pub total_bytes: usize,
pub current_bytes: usize,
pub percentage_done: f32,
pub estimated_remaining_time: f32,
pub notification_count: u64,
}
Expand description
Structure modeling information about download progress
Fields§
§elapsed_time: Duration
§last_elapsed_time: Duration
§last_throughput: f32
§total_throughput: f32
§total_bytes: usize
§current_bytes: usize
§percentage_done: f32
§estimated_remaining_time: f32
§notification_count: u64
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DownloadProgressRecord
impl RefUnwindSafe for DownloadProgressRecord
impl Send for DownloadProgressRecord
impl Sync for DownloadProgressRecord
impl Unpin for DownloadProgressRecord
impl UnwindSafe for DownloadProgressRecord
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