pub struct CallbackArguments {
pub current_chunk: usize,
pub content_length: Option<u64>,
}
Expand description
Arguments given either to a on_progress callback or on_progress receiver
Fields§
§current_chunk: usize
§content_length: Option<u64>
It’s more idiomatic to use this content length instead of a prefetched value since the content of this field might change in the future during the download.
Trait Implementations§
Source§impl Clone for CallbackArguments
impl Clone for CallbackArguments
Source§fn clone(&self) -> CallbackArguments
fn clone(&self) -> CallbackArguments
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 moreAuto Trait Implementations§
impl Freeze for CallbackArguments
impl RefUnwindSafe for CallbackArguments
impl Send for CallbackArguments
impl Sync for CallbackArguments
impl Unpin for CallbackArguments
impl UnwindSafe for CallbackArguments
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