pub struct ProgressUnit { /* private fields */ }
Expand description
Represents a unit of progress for tracking file downloads.
This struct holds information about the file being downloaded, including its name, total size, and current progress.
Implementations§
Source§impl ProgressUnit
impl ProgressUnit
Sourcepub fn total_size(&self) -> u64
pub fn total_size(&self) -> u64
Retrieves the total size of the file in bytes.
Trait Implementations§
Source§impl Clone for ProgressUnit
impl Clone for ProgressUnit
Source§fn clone(&self) -> ProgressUnit
fn clone(&self) -> ProgressUnit
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Default for ProgressUnit
impl Default for ProgressUnit
Source§fn default() -> ProgressUnit
fn default() -> ProgressUnit
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ProgressUnit
impl RefUnwindSafe for ProgressUnit
impl Send for ProgressUnit
impl Sync for ProgressUnit
impl Unpin for ProgressUnit
impl UnwindSafe for ProgressUnit
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