pub struct ReqwestStreamProgress {
pub items: u64,
pub bytes: u64,
pub errors: u64,
pub elapsed: Duration,
pub outcome: ReqwestStreamOutcome,
}Expand description
A snapshot of how much of a streamed response has been read so far.
items counts the objects successfully decoded, so an item that failed to decode is not
counted. Note that an item is whatever the format produces: for the Arrow format that is a
RecordBatch, not a row.
bytes counts the body bytes reqwest handed over, which is after transfer- and
content-decoding. If you enabled reqwest’s gzip or brotli features this is therefore
the decompressed size, not the size on the wire.
Fields§
§items: u64§bytes: u64§errors: u64§elapsed: Duration§outcome: ReqwestStreamOutcomeTrait Implementations§
Source§impl Clone for ReqwestStreamProgress
impl Clone for ReqwestStreamProgress
Source§fn clone(&self) -> ReqwestStreamProgress
fn clone(&self) -> ReqwestStreamProgress
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 ReqwestStreamProgress
Auto Trait Implementations§
impl Freeze for ReqwestStreamProgress
impl RefUnwindSafe for ReqwestStreamProgress
impl Send for ReqwestStreamProgress
impl Sync for ReqwestStreamProgress
impl Unpin for ReqwestStreamProgress
impl UnsafeUnpin for ReqwestStreamProgress
impl UnwindSafe for ReqwestStreamProgress
Blanket Implementations§
impl<T> Allocation for T
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