pub struct HttpProgress {
pub transferred: u64,
pub total: Option<u64>,
}Expand description
How much of a transfer has arrived.
Fields§
§transferred: u64Bytes transferred so far, counting anything a resumed transfer skipped.
total: Option<u64>The whole size, when the server said. A chunked response does not, and a progress bar that invents a total for one is lying about it.
Implementations§
Source§impl HttpProgress
impl HttpProgress
Trait Implementations§
Source§impl Clone for HttpProgress
impl Clone for HttpProgress
Source§fn clone(&self) -> HttpProgress
fn clone(&self) -> HttpProgress
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for HttpProgress
Source§impl Debug for HttpProgress
impl Debug for HttpProgress
Source§impl Default for HttpProgress
impl Default for HttpProgress
Source§fn default() -> HttpProgress
fn default() -> HttpProgress
Returns the “default value” for a type. Read more
impl Eq for HttpProgress
Source§impl PartialEq for HttpProgress
impl PartialEq for HttpProgress
impl StructuralPartialEq for HttpProgress
Auto Trait Implementations§
impl Freeze for HttpProgress
impl RefUnwindSafe for HttpProgress
impl Send for HttpProgress
impl Sync for HttpProgress
impl Unpin for HttpProgress
impl UnsafeUnpin for HttpProgress
impl UnwindSafe for HttpProgress
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