pub struct Progress {
pub downloaded_bytes: u64,
pub total_bytes: Option<u64>,
}Expand description
Download progress, reported via ProgressFn.
Fields§
§downloaded_bytes: u64Bytes downloaded so far (including any resumed prefix).
total_bytes: Option<u64>Total size if the server reported one.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Progress
impl RefUnwindSafe for Progress
impl Send for Progress
impl Sync for Progress
impl Unpin for Progress
impl UnsafeUnpin for Progress
impl UnwindSafe for Progress
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